Commit Graph

13 Commits

Author SHA1 Message Date
Harukawa Sayaka
93af05dc04
[python/zh-cn] Empty tuple is also False (#4297) 2022-01-02 20:04:14 +08:00
dengzhenpeng
c3b9c3c31d Fix wrong method name in comment 2020-07-19 23:17:56 -07:00
Simon Shine
ae848c481f Python 3: Use 'filename: learnpython*.py' (no '3')
Before renaming, Python 3 filenames were 'learnpython3*.py'.

This commit removes the '3' part from the filename.

To verify that the filenames were named consistently across
translations prior to this commit, and to change this:

```
ack -H 'filename:' python.html.markdown
find . -name "python-*.markdown" -exec ack -H 'filename:' {} \;

sed -i 's/^filename: learnpython3/filename: learnpython/' \
  python.html.markdown

find . -name "python-*.markdown" -exec \
  sed -i 's/^filename: learnpython3/filename: learnpython/' {} \;
```
2020-02-12 07:04:42 +01:00
Simon Shine
8f5fac9895 Python 3: 'language: Python'
Instead of listing 'language: python3' for Python 3, use

    language: Python

as #3450 does.

```
find . -iname "python-*.markdown" -exec \
  sed -i 's/language: python3/language: Python/' {} \;
```
2020-02-12 07:04:42 +01:00
Simon Shine
efe00fd06e Switch links: 'python3 <-> python' and 'python <-> pythonlegacy'
The list of references is exhausted by running 'ack docs/python'.
2020-02-12 05:03:08 +01:00
Simon Shine
a3b0585374 Rename Python 3 markdown files into 'python'
```
for f in $(find . -iname "*python3*" | grep -vE 'git'); do
  fnew=$(echo "$f" | sed 's/python3/python/')
  git mv "$f" "$fnew"
done
2020-02-12 04:54:36 +01:00
Simon Shine
1adab9bc3f Rename Python 2 markdown files into 'pythonlegacy'
```
for f in $(find . -iname "*python*" | grep -vE 'python3|git|statcomp'); do
  flegacy=$(echo "$f" | sed 's/python/pythonlegacy/')
  git mv "$f" "$flegacy"
done
```
2020-02-12 04:53:08 +01:00
Anindya Srivastava
9b5b5f6d31 Type correction for the output of math.sqrt() propagated across versions and languages 2019-02-06 07:31:34 +05:30
cattail
91d1227001 [all/zh-cn] fix incorrect language-specific suffix
Also change useless executable file mode.
2013-12-18 10:20:49 +08:00
Ryan
19e7828719 it should be some_set 2013-12-10 19:19:10 +08:00
hbc
c5a3e19140 Improved some translations, made the code more PEP8 2013-08-14 08:19:05 +08:00
Adam
bd48b7062c Updated translation filenames to prevent collisions 2013-08-12 09:53:40 -07:00
Chenbo Li
521940d708 add python-cn 2013-08-03 22:36:38 +08:00