Miss Islington (bot)
4abe77c725
bpo-39869: Fix typo in 'Instance objects' section. (GH-18889)
...
(cherry picked from commit e5e56328af )
Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com >
2020-03-14 15:13:18 -07:00
Miss Islington (bot)
b086ea5edc
Grammar fix in tutorial (GH-18425) (GH-18426)
...
(cherry picked from commit 3ed4d25158 )
Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com >
2020-02-10 06:40:15 -05:00
Miss Islington (bot)
97e00b3c52
bpo-39534: Doc: Clarify return in finally (GH-18324)
...
(cherry picked from commit 446463f8db )
Co-authored-by: Julien Palard <julien@palard.fr >
2020-02-06 14:23:04 -08:00
Miss Islington (bot)
d01ae1b223
bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973)
...
(cherry picked from commit 5807efd4c3 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com >
2020-02-03 09:17:17 -08:00
Miss Islington (bot)
5a2356be1a
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
...
(cherry picked from commit 7142df5ea2 )
Co-authored-by: Shanavas M <shanavas.m2@gmail.com >
2020-01-23 10:22:36 -08:00
Miss Islington (bot)
39134b374f
bpo-38678: Improve argparse example in tutorial (GH-17207) (GH-17212)
...
(cherry picked from commit 04c79d6088 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com >
2019-11-17 22:17:14 -08:00
Jules Lasne (jlasne)
1eac437e8d
[3.8] Update interpreter.rst (GH-17059) (GH-17060)
...
Fixed what seemed to be a weird phrasing.
(cherry picked from commit 5e01a6542a )
Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com >
2019-11-05 14:51:48 +01:00
Miss Skeleton (bot)
cf028b5716
bpo-38558: Mention := in conditions tutorial (GH-16919)
...
(cherry picked from commit cb2cf06b0a )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com >
2019-10-25 15:27:07 -07:00
Miss Islington (bot)
68040edb79
bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016) (GH-16415)
...
Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com >
(cherry picked from commit 1ad7be2f16 )
Co-authored-by: Mohammad Dehghan <md.unicorn@gmail.com >
2019-09-26 11:16:38 +02:00
Miss Islington (bot)
6612a4fd36
[3.8] bpo-38218: Doc: Corrected syntax for return annotation (GH-16265) (GH-16274)
...
Signed-off-by: Jason Plurad <pluradj@us.ibm.com >
(cherry picked from commit 9ab6038fe8 )
Co-authored-by: Jason Plurad <pluradj@us.ibm.com >
2019-09-19 07:42:57 +02:00
Miss Islington (bot)
7a2f68776a
bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16234)
...
A little change on first paragraph of python tutorial to be more clearly
https://bugs.python.org/issue37904
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit b57481318e )
Co-authored-by: Diego Alberto Barriga MartÃnez <diegobarriga@protonmail.com >
2019-09-18 06:36:15 -04:00
Miss Islington (bot)
9dc381c0aa
Doc: Add link of GNU Readline library to interpreter tutorial (GH-16152) (GH-16189)
...
(cherry picked from commit f18242be16 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com >
2019-09-16 18:30:04 +02:00
Miss Islington (bot)
817227ebd5
Doc: remove duplicate word in controlflow tutorial (GH-16163)
...
(cherry picked from commit b7af4e7565 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com >
2019-09-16 00:13:14 -07:00
Miss Islington (bot)
4a71df88cd
bpo-37635: Update arg name for seek() in IO tutorial (GH-16147)
...
Typically, the second positional argument for ``seek()`` is *whence*. That is the POSIX standard name (http://man7.org/linux/man-pages/man3/lseek.3p.html ) and the name listed in the documentation for ``io`` module (https://docs.python.org/3/library/io.htmlGH-io.IOBase.seek ).
The tutorial for IO is the only location where the second positional argument for ``seek()`` is referred to as *from_what*. I suspect this was created at an early point in Python's history, and was never updated (as this section predates the GitHub repository):
```
$ git grep "from_what"
Doc/tutorial/inputoutput.rst:To change the file object's position, use ``f.seek(offset, from_what)``. The position is computed
Doc/tutorial/inputoutput.rst:the *from_what* argument. A *from_what* value of 0 measures from the beginning
Doc/tutorial/inputoutput.rst:the reference point. *from_what* can be omitted and defaults to 0, using the
```
For consistency, I am suggesting that the tutorial be updated to use the same argument name as the IO documentation and POSIX standard for ``seek()``, particularly since this is the only location where *from_what* is being used.
Note: In the POSIX standard, *whence* is technically the third positional argument, but the first argument *fildes* (file descriptor) is implicit in Python.
https://bugs.python.org/issue37635
(cherry picked from commit ff603f6c3d )
Co-authored-by: Kyle Stanley <aeros167@gmail.com >
2019-09-14 13:47:31 -07:00
Miss Islington (bot)
c0acc0e53e
Improve clarity of try-return-finally-return (GH-15677) (GH-15981)
...
Clarify execution in try-return-finally-return case.
(cherry picked from commit 0cc27417f2 )
Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com >
2019-09-11 19:42:21 +02:00
Miss Islington (bot)
6c588a00ed
Correct info about "f.read(size)". (GH13852)
...
In text mode, the "size" parameter indicates the number of characters, not bytes.
(cherry picked from commit faff81c05f )
Co-authored-by: William Andrea <william.j.andrea@gmail.com >
2019-09-10 09:00:09 -07:00
Miss Islington (bot)
a8424940b4
bpo-14112: Allow beginners to explore shallowness in greater depth ;-) (GH-15465) (GH-15469)
...
(cherry picked from commit 69ee87e99c )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com >
2019-08-24 11:33:18 -07:00
Miss Islington (bot)
b6341e676a
bpo-30826: Improve control flow examples (GH-15407) (GH-15410)
...
(cherry picked from commit 6fcb6cfb13 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com >
2019-08-22 23:52:12 -07:00
Miss Islington (bot)
f6a7f5bc50
bpo-12634: Clarify an awkward section of the tutorial (GH-15406) (GH-15409)
...
(cherry picked from commit 483ae0cf1d )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com >
2019-08-22 23:45:57 -07:00
Miss Islington (bot)
cb8de91dad
bpo-14050: Note that not all data can be sorted (GH-15381) (GH-15395)
...
(cherry picked from commit 4109263a7e )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com >
2019-08-22 09:39:52 -07:00
Miss Islington (bot)
dcc53ebbff
bpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) ( #15070 )
...
(cherry picked from commit 2491134029 )
Co-authored-by: mental <m3nta1@yahoo.com >
2019-08-01 07:34:57 -07:00
Miss Islington (bot)
975d4d3651
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
...
Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77 )
Co-authored-by: Julien Palard <julien@palard.fr >
2019-07-08 14:13:57 -07:00
Miss Islington (bot)
0cba121029
bpo-37403: Touch up venv docs (GH-14458)
...
Add a versionadded for PS Core and note that `.venv` is a common virtual environment name.
(cherry picked from commit f9f8e3ce70 )
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com >
2019-06-28 12:36:09 -07:00
Steve Dower
af7282e129
Improve Windows commands in tutorial (GH-14400)
2019-06-26 09:41:45 -07:00
Marco Buttu
218e47b618
bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)
2019-06-01 14:11:47 -07:00