| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8f755760fda13b481a34b1f326984d293a)
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
|
| |
|
|
|
| |
(cherry picked from commit 34d11f1b0c0e1936a37581e0fb0daec637afca47)
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
|
| |
|
|
|
|
|
|
| |
(GH-94551) (GH-94557)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
|
| |
|
|
|
|
|
| |
(GH-93901) (GH-94425)
(cherry picked from commit 22b783aba05bcc3a21af9e5ae308ffbb98ff6a12)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
| |
|
|
|
|
|
|
| |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
(cherry picked from commit 4b854b746650214eddadb2440efd9e1544d08ccb)
|
| |
|
|
|
|
| |
The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.
(cherry picked from commit 7c439dca13435085efb2fddf9ac75e5305db7ada)
Co-authored-by: partev <petrosyan@gmail.com>
|
| |
|
|
|
|
| |
* gh-94114
(cherry picked from commit 8661c5053fbe3e246289d77e49a813470b3a16f7)
Co-authored-by: partev <petrosyan@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit dd5cf84f245abf84405833320b8f25dbc43b24d2)
Co-authored-by: max <36980911+pr2502@users.noreply.github.com>
|
| |
|
|
|
|
| |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit 51d673176ac90f2144e3e7a492e5b3ea53bdba2e)
Co-authored-by: paulreece <96156234+paulreece@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
This fixes an issue on tutorial/classes.rst section 9.4 where the example "class Warehouse"
was truncated when pressing the >>> button to hide the prompts and output.
(cherry picked from commit 88f0d0c1e8fdda036f3f64b0048911ba28ce7f06)
Co-authored-by: Nicolas Haller <nicolas@haller.im>
|
| |
|
|
|
|
| |
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 859250cc55711f4d62b65922d3f7537826c3801e)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
|
| |
|
| |
* Fix missing possessive apostrophe
|
| | |
|
| |
|
|
|
|
|
|
|
| |
#85757
https://docs.python.org/3/tutorial/datastructures.html#nested-list-comprehensions
I do think this is clearer, but I wonder if 'nested' should be kept though to get the terminology out there more often. So perhaps it could be something like 'inner (nested) listcomp' or 'nested (inner) listcomp' despite sounding a bit redundant
Automerge-Triggered-By: GH:rhettinger
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
|
| | |
|
| |
|
|
| |
initialization (GH-31082)
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Add a link to the `match` statement from its section in the tutorial.
This should be backported to 3.10.
[Initially submitted as #31395 but against the wrong branch. Thanks @Mariatta]
Automerge-Triggered-By: GH:Mariatta
|
| |
|
|
|
|
| |
Initially reported by Gregory Jacob on the docs@ mailing list:
https://mail.python.org/archives/list/docs@python.org/thread/VPSFGLOZOHSPF7TGPOI65AOH25TCPSVR/
|
| | |
|
| |
|
|
| |
(GH-30504)
|
| | |
|
| |
|
|
|
|
|
| |
Remove the bit about subclassing exceptions.
Documentation PR can skip the NEWS label.
Automerge-Triggered-By: GH:iritkatriel
|
| | |
|
| |
|
|
|
| |
9.8) of The Python Tutorial (GH-30110)
Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
|
| |
|
|
|
| |
The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
@vsajip Sorry for the trouble—made a [fairly significant] git error in the previous PR.
Have edited the patch as you had said in #28959.
Automerge-Triggered-By: GH:vsajip
|
| | |
|
| |
|
|
|
|
|
| |
Replace old names when they refer to actual versions of macOS.
Keep historical names in references to older versions.
Co-authored-by: Patrick Reader <_@pxeger.com>
|
| |
|
|
|
|
|
| |
Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``.
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
|
| | |
|
| |
|
| |
This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
|
| | |
|
| | |
|
| |
|
| |
Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
|
| |
|
|
|
| |
This documents in the tutorial docs the behavior of a finally clause in
case it should re-raise an exception but contains a
return/break/continue statement.
|
| | |
|