| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(cherry picked from commit badb637c8ce91625122d5f4d71276bfe1a8ed5e9)
Co-authored-by: William Andrea <william.j.andrea@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
Add a link to the `match` statement from its section in the tutorial.
Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 35f55cc5c690a97853f1b544aac53574ab755b54)
Co-authored-by: William Andrea <william.j.andrea@gmail.com>
|
| |
|
|
| |
(GH-30504) (GH-30509)
|
| |
|
|
|
|
|
|
|
|
| |
Remove the bit about subclassing exceptions.
Documentation PR can skip the NEWS label.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 2db56130631255ca2eb504519430fb2f1fe789e9)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
| |
|
|
| |
(GH-30328)
|
| |
|
|
|
|
|
|
| |
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>
(cherry picked from commit c5d18a5014f649368b5a4bca94e9ec7d2908b481)
Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
|
| |
|
|
|
|
|
|
| |
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>
(cherry picked from commit 1cbb88736c32ac30fd530371adf53fe7554be0a5)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7)
Co-authored-by: Zachary Ware <zach@python.org>
|
| |
|
|
|
| |
(cherry picked from commit 7484a5c82a2dfc106bb1e4b060cad2df00521bfd)
Co-authored-by: 180909 <734461790@qq.com>
|
| |
|
|
|
|
|
| |
(GH-27105) (GH-29119)
(cherry picked from commit 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c)
Co-authored-by: Thomas <thmsdnnr@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 55b45bf707c6c8084db259fe2f8aa08e84ea0d99)
Co-authored-by: Peter Bittner <django@bittner.it>
|
| |
|
|
|
|
|
|
|
|
| |
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>
(cherry picked from commit 36122e18148c5b6c78ebce1d36d514fd7cf250f5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.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>
(cherry picked from commit 7cba23164cf82f6619db002cd30021b5dfb1f809)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 15a64d89a31b7e91f0361c305b7b27d8761db93d)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 599f5c8481ca258ca3a5d13eaee7d07a9103b5f2)
Co-authored-by: Jefferson Oliveira <jefferson.dev.insights@gmail.com>
|
| |
|
|
|
|
| |
(cherry picked from commit ed524b4569b1e4a166886c880018418d46284378)
Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit e9a6f1b78bf57d9f3f99547bd007d7cfc9724cfb)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
| |
|
|
|
|
|
|
| |
(GH-27380)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
| |
|
|
|
|
|
|
| |
(GH-26927)
(cherry picked from commit 2f49c9debc2efe010c757be3bdbd6493f1ebc5f6)
Co-authored-by: jdevries3133 <58614260+jdevries3133@users.noreply.github.com>
|
| |
|
|
|
|
| |
This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
(cherry picked from commit 2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
|
|
|
|
|
|
| |
(GH-26218)
(cherry picked from commit 4fdcc39f711e1b586a94e2c5088fdd7e78fd9f58)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
| |
(cherry picked from commit 07797121cc290ede0b3d3cf02068f3d993cddd15)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
|
| |
|
|
|
|
|
| |
Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
(cherry picked from commit 6574334a68aa324394a6fd1f855ecbad20432b1e)
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
|
| |
|
|
|
|
|
|
|
|
| |
(#25893)
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.
(cherry picked from commit a0b9915a8be98427432e13d8eb2207a8b9824179)
Co-authored-by: Roberto Hueso <robertohueso96@gmail.com>
|
| |
|
|
|
| |
Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section.
There are more modified links than in the bug report because I searched some other ones which can get the same improvement.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
In the [official tutorial on virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments)
> This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, **the standard library**, and various supporting files.
According to the actual behavior of `venv` and [PEP 405](https://www.python.org/dev/peps/pep-0405/#id15)'s description about virtual environment, no standard library file is included in the virtual environment's directory.
Automerge-Triggered-By: GH:vsajip
|
| |
|
|
|
|
|
|
|
| |
This is a first edition, ready to go out with the implementation. We'll iterate during the rest of the period leading up to 3.10.0.
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Raymond Hettinger <1623689+rhettinger@users.noreply.github.com>
Co-authored-by: Guido van Rossum <guido@python.org>
|
| |
|
| |
Calling same function also gets new local namespace.
|
| |
|
|
|
|
|
|
|
|
|
| |
Improvements:
- Improvements in how try clause works section
This suggestion is because the execution continues after *except*, not after *try* but before *except*. I guess this form more clear.
- Surrounding some keywords with \*...\*
For uniformity the highlighted terms
- Adjust the number of chars per line to 80
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update errors.rst
Clarify exception chaining behaviour and give a reference to the library documentation.
* Update errors.rst
Wording
* Update errors.rst
Spelling
* Update errors.rst
Remove mentioning of special attributes as folks think it's too much for beginners.
|
| | |
|
| |
|
| |
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
| | |
|
| |
|
| |
Numeric(al) Python to NumPy. It seems the old name hasn't been used for some time.
|
| |
|
| |
This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
|
| | |
|
| |
|
| |
Revise example of "continue" in the tutorial documentation
|
| |
|
| |
Automerge-Triggered-By: @csabella
|
| |
|
|
|
|
|
|
| |
Sphinx 3 requires to refer to terms with the exact case.
For example, fix the Sphinx 3 warning:
Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case
sensitive match.made a reference to loader instead.
|
| |
|
|
|
| |
The phrase "At any time during execution," was repeated twice.
Automerge-Triggered-By: @Mariatta
|
| |
|
|
|
|
|
|
|
| |
* improve control flow docs
* Add also
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
|
|
|
|
|
|
|
| |
* Clarify number of scopes
* Indicate 3 or 4
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
|
|
|
|
| |
* Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
|
| |
|
|
|
|
|
| |
* Add 'users' variable in code sample.
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
|
| | |
|
| |
|
|
| |
(GH-18999)
|
| | |
|