]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 3 Oct 2022 13:43:31 +0000 (06:43 -0700)]
Fix typo in unittest docs (GH-97742)
(cherry picked from commit
e6f9ec5c031bd996fcd5f463c407beef0b743b49 )
Co-authored-by: annonm <annonm@gmail.com>
Miss Islington (bot) [Mon, 3 Oct 2022 22:48:00 +0000 (15:48 -0700)]
multiprocessing docs: Remove extra option ELLIPSIS from section with code (GH-96625)
(cherry picked from commit
d78aa4e11a80653588229cc97119afae693d1c06 )
Co-authored-by: Ivan Kapeykin <5349983@gmail.com>
Miss Islington (bot) [Mon, 3 Oct 2022 23:30:07 +0000 (16:30 -0700)]
Minor grammar changes to http.client docs (GH-96221)
Minor grammar changes
(cherry picked from commit
d053c47bfde1b3d8779546b980849708662f2660 )
Co-authored-by: Rohan Shah <57906961+rshah713@users.noreply.github.com>
Miss Islington (bot) [Mon, 3 Oct 2022 23:35:10 +0000 (16:35 -0700)]
Update http.client.rst (GH-24803)
* Update http.client.rst
* Apply suggestions from code review
Co-authored-by: Éric <merwok@netwok.org>
* Update http.client.rst
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Senthil Kumaran <senthil@python.org>
(cherry picked from commit
0c91a125116b21e91d0d1cca457da830348f0806 )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Miss Islington (bot) [Tue, 4 Oct 2022 01:55:04 +0000 (18:55 -0700)]
gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (GH-97771)
:c:data:`0` -> ``0``
(cherry picked from commit
5e997cff3e1dea24241726338457611beb8882ec )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 05:43:00 +0000 (22:43 -0700)]
gh-97709: Included newline separator in Mandelbrot set (GH-97737)
Included newline separator in Mandelbrot set
Now the Mandelbrot set one-liner example on separates the lines with a '\n' character.
(cherry picked from commit
49802605f8e47c5c7ddc8a6cecdf4afe44765586 )
Co-authored-by: matheusja <matheusjahnke@hotmail.com>
Miss Islington (bot) [Tue, 4 Oct 2022 13:15:46 +0000 (06:15 -0700)]
Adjust stable ABI internal documentation (GH-96896)
I was perusing this file, and noticed that this part of the documentation is slightly out of date: the `struct` items in this TOML file currently contain `struct_abi_kind` members, which distinguish between the different types of ABI compatibility described in the comment.
I've updated the comment to reflect this.
(cherry picked from commit
6e533088290b909df324615df24286489603989f )
Co-authored-by: William Woodruff <william@yossarian.net>
Miss Islington (bot) [Tue, 4 Oct 2022 16:13:37 +0000 (09:13 -0700)]
gh-97754: Update doc for default location of per-user installs on Windows (GH-97756)
(cherry picked from commit
a120b9f25d037a1c794df731f8cc6a2898a9165e )
Co-authored-by: Ben Faulhaber <111227622+faulhaberben@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 16:52:28 +0000 (09:52 -0700)]
GH-82604: fix docs about configuring selector (GH-97755)
(cherry picked from commit
53503ff60e9a4727af0d9a1096418675e72a0fae )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 18:45:02 +0000 (11:45 -0700)]
GH-95913: Update what's new in 3.11 for asyncio (GH-97806)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
9fbfa42ece3e0256657ce2594c7c3eb8b3ac8ff3 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Tue, 4 Oct 2022 22:14:52 +0000 (15:14 -0700)]
gh-90301: Doc: Add references to PEP 686 (GH-96816)
Doc: Add references to PEP 686.
(cherry picked from commit
87679a6e607eec1134d77222a3a92d0d11f768ad )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Tue, 4 Oct 2022 22:21:28 +0000 (15:21 -0700)]
[3.11] gh-96448: fix documentation for _thread.lock.acquire (GH-96449) (#97851)
gh-96448: fix documentation for _thread.lock.acquire (GH-96449)
* fix documentation for _thread.lock.acquire
* update formatting of _thread.lock.acquire() doc
(cherry picked from commit
7acb93f0d44c6fb971fdb09b86f68896e3b1e2f8 )
Co-authored-by: Daniel Giger <danielg3432@gmail.com>
Co-authored-by: Daniel Giger <danielg3432@gmail.com>
Miss Islington (bot) [Tue, 4 Oct 2022 22:55:34 +0000 (15:55 -0700)]
[3.11] gh-88355: Fix backslashes in AF_PIPE (GH-96543) (#97854)
gh-88355: Fix backslashes in AF_PIPE (GH-96543)
Fix backslashes in AF_PIPE (GH-88355)
The correct syntax for AF_PIPE addresses is `\\.\pipe\blahblah`, not `\.\pipe{blahblah}`, but the syntax markup messed up the backslashes.
(cherry picked from commit
ff28d8926de92d809e3b7f71d3e44672178ed11e )
Co-authored-by: cousteau <cousteaulecommandant@users.noreply.github.com>
Co-authored-by: cousteau <cousteaulecommandant@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 22:58:59 +0000 (15:58 -0700)]
gh-95913: Move py.exe to appropriate What's New section & refine text (GH-97718)
* Move Windows py.exe improvements from Typing section to New Features
* Add ref target label and use literal for py.exe
* Be clearer/explict about what legacy version arg components reprisent
* Apply other minor clarity and textual fixes to py.exe launcher text
* Refine phrasing of legacy sentence of py.exe desc
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
985958187d578cfa311e404588950b29fda95db7 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 4 Oct 2022 23:24:50 +0000 (16:24 -0700)]
gh-95913: Copyedit/improve Other Language Changes What's New section (GH-97719)
* Add/refine cross references to items in other lang changes section
* Unify context manager exception changes into single non-repetitive item
* More clearly describe the intent and consequences of the -P option
* Apply minor clarifications & copyedits to rest of section
* Tweak the formatting of module references
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
a77d9dedcd0d52c2663e9de4417dec9d1c5199f4 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 4 Oct 2022 23:38:24 +0000 (16:38 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`) (GH-97784) (#97857)
:c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`
(cherry picked from commit
a081cae2a2cd1248ad067c3f7dc218ea7e3d203a )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 23:38:58 +0000 (16:38 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyUnicodeObject*` -> :c:expr:`PyUnicodeObject*`) (GH-97783) (#97859)
:c:type:`PyUnicodeObject*` -> :c:expr:`PyUnicodeObject*`
(cherry picked from commit
898834e27b82bd1f3532b6448a862a7a9cdeff66 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 23:40:47 +0000 (16:40 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`) (GH-97782) (#97861)
:c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`
(cherry picked from commit
9ebc50866b58a0ee2985c6540a67fee8a4a49e4d )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Oct 2022 23:46:13 +0000 (16:46 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`) (GH-97780) (#97863)
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
(cherry picked from commit
510baa429affb832d7b4ed68182e59daa2815d2e )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 00:47:02 +0000 (17:47 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`FILE` -> :c:expr:`FILE`) (GH-97769) (#97871)
:c:type:`FILE` -> :c:expr:`FILE`
(cherry picked from commit
192d401ba53224020f5f9ca6e1ff2c9f89511ac4 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 00:48:24 +0000 (17:48 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`TYPE` -> :c:expr:`TYPE`) (GH-97770) (#97874)
:c:type:`TYPE` -> :c:expr:`TYPE`
(cherry picked from commit
8b211b4cdbcddecfcc4d1682864795b5f1438c59 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 00:53:48 +0000 (17:53 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyInterpreterState *` -> :c:expr:`PyInterpreterState *`) (GH-97777) (#97865)
:c:type:`PyInterpreterState *` -> :c:expr:`PyInterpreterState *`
(cherry picked from commit
4ebb0250314b57637d213cd5bc5f5ce5dd911d94 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 00:55:17 +0000 (17:55 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:data:`view->obj` -> :c:expr:`view->obj`) (GH-97773) (#97867)
:c:data:`view->obj` -> :c:expr:`view->obj`
(cherry picked from commit
fa59bda8d30ea0b6c19007205b57c800c944304c )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 01:08:59 +0000 (18:08 -0700)]
gh-95913: Copyedit/improve Implementation Changes What's New section (GH-97720)
* Add and refine reST/Sphinx syntax for implementation changes section
* Clarify and refine wording in the Implementation Changes section
* Elide unnecessary comma
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
4e731814d781dae3419e981c0acc3ef833e26e8a )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Wed, 5 Oct 2022 01:29:54 +0000 (18:29 -0700)]
Add re.VERBOSE flag documentation example (GH-97678)
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit
0ceafa7fa408b64377ea31dd5386152da19ef38a )
Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>
Miss Islington (bot) [Wed, 5 Oct 2022 08:57:30 +0000 (01:57 -0700)]
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
4b83cd0b22428fbfccf1f0e85c0fc36be6ab7edf )
Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:18:27 +0000 (08:18 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyObject` -> :c:expr:`PyObject`) (GH-97776) (#97889)
:c:type:`PyObject` -> :c:expr:`PyObject`
(cherry picked from commit
0bf6a617ed1832bc4803e532c8d6b3427cf48b13 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:18:55 +0000 (08:18 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (GH-97775) (#97873)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:20:03 +0000 (08:20 -0700)]
[3.11] gh-93738: Documentation C syntax (Use `c:struct`) (GH-97772) (#97869)
Use `c:struct`
(cherry picked from commit
a0f5599aac2037da715d09733e0a83a9cba7c37a )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 15:21:32 +0000 (08:21 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:`PyTypeObject*` -> :c:expr:`PyTypeObject*`) (GH-97778) (#97892)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
c70c8b69762f720377adaf22f2e5ec6496a7be53 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 18:00:29 +0000 (11:00 -0700)]
[3.11] gh-93738: Documentation C syntax (Function glob patterns -> literal markup) (GH-97774) (#97910)
(cherry picked from commit
0e72606dd4cf3023a4f8c2fe3c58082592b253f7 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 5 Oct 2022 18:01:17 +0000 (11:01 -0700)]
GH-95172 Make the same version `versionadded` oneline (GH-95172)
* Make the same version versionadded oneline
* Format versionadded for enum.rst
* Format versionadded
A single line versionadded was reading better.
Co-authored-by: Senthil Kumaran <senthil@python.org>
(cherry picked from commit
d6062d1170199c4f02acf6de8fcbf5d748a03db2 )
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Wed, 5 Oct 2022 20:16:12 +0000 (13:16 -0700)]
docs(typing): add "see PEP 675" to LiteralString (GH-97926)
(cherry picked from commit
2016bc54a22b83d0ca9174b64257cc7bb67a0916 )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Łukasz Langa [Wed, 5 Oct 2022 21:11:12 +0000 (14:11 -0700)]
[3.11] gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (GH-97768) (#97924)
:c:type:`<C type>` -> :c:expr:`<C type>`
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
0031e62973801d34a9e19ab7bb199e9668e32d7b )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Oct 2022 21:50:46 +0000 (14:50 -0700)]
[3.11] gh-97654: Add auto exception chaining example to tutorial (GH-97703) (#97885)
gh-97654: Add auto exception chaining example to tutorial (GH-97703)
Add auto exception chaining example to tutorial
(cherry picked from commit
395b66a0ae5237eec195ca97daaaf8563706ed34 )
Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
Miss Islington (bot) [Wed, 5 Oct 2022 22:03:18 +0000 (15:03 -0700)]
[3.11] gh-96197: Fix expression when :func:`sys.breakpointhook is missing (gh-96293) (#96294)
(cherry picked from commit
47d406ffc4946b023e38322c5235bec25f068481 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 5 Oct 2022 23:54:21 +0000 (16:54 -0700)]
GH-88968: Add notes about socket ownership transfers (GH-97936)
(cherry picked from commit
74ea204634f8eb4745afd5cb75c3fe7749cf38b5 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Thu, 6 Oct 2022 00:21:55 +0000 (17:21 -0700)]
[3.11] gh-95691: Doc BufferedWriter and BufferedReader (GH-95703) (#97947)
gh-95691: Doc BufferedWriter and BufferedReader (GH-95703)
(cherry picked from commit
0d68879104dfb392d31e52e25dcb0661801a0249 )
Co-authored-by: 180909 <734461790@qq.com>
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Thu, 6 Oct 2022 17:49:29 +0000 (10:49 -0700)]
[3.11] gh-93738: Disallow pre-v3 syntax in the C domain (GH-97962) (#97976)
Also, disable using invalid sphinx-lint 0.6.2.
(cherry picked from commit
f612565bd32d4ab0945798da775eea070f08b6fe )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Thu, 6 Oct 2022 19:32:39 +0000 (12:32 -0700)]
gh-86482: Document assignment expression need for ()s (GH-23291)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
2b5f1360ead9aa72ae00de59edfd6c229d13933f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Barry Warsaw [Thu, 6 Oct 2022 20:47:33 +0000 (13:47 -0700)]
[3.11] Backport
effc25f 3.11 (#97991)
* Add Pynche's move to the What's new in 3.11 (#97974)
* Add Pynche's move to the What's new in 3.11
* Update Doc/whatsnew/3.11.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
effc25f7f25ae1ac053415addc584b050c022dcb )
* [3.11] Add Pynche's move to the What's new in 3.11 (GH-97974)
* Add Pynche's move to the What's new in 3.11
* Update Doc/whatsnew/3.11.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
(cherry picked from commit
effc25f7f25ae1ac053415addc584b050c022dcb )
Co-authored-by: Barry Warsaw <barry@python.org>
Miss Islington (bot) [Thu, 6 Oct 2022 21:01:27 +0000 (14:01 -0700)]
[3.11] Docs: pin sphinx-lint (GH-97992) (GH-97993)
Miss Islington (bot) [Thu, 6 Oct 2022 21:10:06 +0000 (14:10 -0700)]
[3.11] gh-97850: Remove the open issues section from the import reference (GH-97935) (GH-97994)
Remove the open issues section from the import reference
Tracking in https://github.com/python/cpython/issues/97850 instead.
(cherry picked from commit
f8edc6ff531bb98858185857513371f14519ed1d )
Co-authored-by: Brett Cannon <brett@python.org>
Automerge-Triggered-By: GH:brettcannon
Miss Islington (bot) [Fri, 7 Oct 2022 00:56:24 +0000 (17:56 -0700)]
[3.11] Remove extra spaces in custom openSSL documentation. (GH-93568) (#98007)
Remove extra spaces in custom openSSL documentation. (GH-93568)
(cherry picked from commit
4875433682ffec2694647ac43f1b21f5ad73fd25 )
Co-authored-by: Xiao Chen <chenxiao_7@163.com>
Co-authored-by: Xiao Chen <chenxiao_7@163.com>
Miss Islington (bot) [Fri, 7 Oct 2022 08:46:31 +0000 (01:46 -0700)]
Misc updates to the itertools recipes and tests (GH-98018)
(cherry picked from commit
e500cc04517bd65668f2e203c1e37b0cc5b1cf1b )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 14:10:46 +0000 (07:10 -0700)]
gh-71316: Update dis documentation to include changes to jump arguments (GH-95798)
(cherry picked from commit
6592a62ec2939323b895c85780da7fd73a640da3 )
Co-authored-by: Christopher Chianelli <cchianel@redhat.com>
Miss Islington (bot) [Fri, 7 Oct 2022 18:21:01 +0000 (11:21 -0700)]
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit
4a74e6ab3885e7906cc5e0b15addc7779bc76249 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 19:02:51 +0000 (12:02 -0700)]
[3.11] gh-96959: Update HTTP links which are redirected to HTTPS (GH-98039) (#98049)
(cherry picked from commit
c81c64ca58822156beba79dfd3035bf2a5b7354e )
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Fri, 7 Oct 2022 20:53:15 +0000 (13:53 -0700)]
[3.11] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) (#98052)
Revert params note in urllib.parse.urlparse table
(cherry picked from commit
eed80458e8e776d15fa862da71dcce58c47e2ca7 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Oct 2022 23:05:52 +0000 (16:05 -0700)]
gh-61105: Add default param, note on using cookiejar subclass (GH-95427)
(cherry picked from commit
5eaf4d610147a3b9adc91a55790096d05bbe01d4 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Sat, 8 Oct 2022 05:07:06 +0000 (22:07 -0700)]
gh-97822: Fix http.server documentation reference to test() function (GH-98027)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
6b485629d2e3e232460db7da3f8b18b67d4f4da8 )
Co-authored-by: JasonYZ <yurenzhang2017@gmail.com>
Miss Islington (bot) [Sat, 8 Oct 2022 07:01:27 +0000 (00:01 -0700)]
gh-97913 Docs: Add walrus operator to the index (GH-97921)
* Add walrus operator to the index
* Add named expression to the index
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
* Fix indentation and add missing newline
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
296313002fde56f52d6c81f17d7ba5c2eb57d098 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 9 Oct 2022 02:03:25 +0000 (19:03 -0700)]
Minor edits to the Descriptor HowTo Guide (GH-24901)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
(cherry picked from commit
2d2e01aa4cb72db8dabcd04e87f1e60b3597267e )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Miss Islington (bot) [Mon, 10 Oct 2022 01:02:00 +0000 (18:02 -0700)]
gh-56133: copyreg docs: Clarify function/constructor parameter (GH-95497)
(cherry picked from commit
281a3f18cc2afac0fa92c75e807775971e531711 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Oct 2022 01:03:53 +0000 (18:03 -0700)]
Fix types in buffer/memoryview docs (GH-98118)
The definition of obj in the `Py_buffer` struct is as a PyObject*
https://github.com/python/cpython/blob/
ec091bd47e2f968b0d1631b9a8104283a7beeb1b /Include/pybuffer.hGH-L22
PyMemoryView_GET_BASE returns `.obj` - thus its return type
should be a PyObject* (or at least a void*). It definitely
doesn't return `Py_buffer`
(cherry picked from commit
c459fedf7cfd5dadf72e088d789c7375b3a6e093 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Mon, 10 Oct 2022 08:50:26 +0000 (01:50 -0700)]
doc: remove a misleading statement. (GH-98093)
(cherry picked from commit
571e23d99157ed7ad67ca2334a396fc9ddbe07ec )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Mon, 10 Oct 2022 14:01:05 +0000 (07:01 -0700)]
gh-83940: os docs: Improve wording for getenv/getenvb (GH-98113)
(cherry picked from commit
187e853690908ca2af19a0701ca7529b43d05df9 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Oct 2022 20:10:04 +0000 (13:10 -0700)]
[3.11] gh-88452: Add a warning about non-portability of environments. (GH-98155) (GH-98157)
Miss Islington (bot) [Tue, 11 Oct 2022 16:22:04 +0000 (09:22 -0700)]
gh-98172: Fix formatting in `except*` docs (GH-98173)
(cherry picked from commit
5ecf961640192a2192383aa20e1e93dcdf23c9b6 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 12 Oct 2022 02:45:44 +0000 (19:45 -0700)]
gh-96130: Rephrase use of "typecheck" verb for clarity (GH-98144)
I'm sympathetic to the issue report, especially in case this helps
clarify to new users that Python itself does not do type checking at runtime
(cherry picked from commit
ed6344eed043eaaa41d11c1176c25aa79de64ef4 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Oct 2022 02:50:25 +0000 (19:50 -0700)]
gh-95276: Add callable entry to the glossary (GH-95738)
(cherry picked from commit
e3bf125c81d5da0734429c1cb6ae75e6086e35ae )
Co-authored-by: MonadChains <monadchains@gmail.com>
Miss Islington (bot) [Wed, 12 Oct 2022 04:05:12 +0000 (21:05 -0700)]
Formatting fixes in contextlib docs (GH-98111)
(cherry picked from commit
3b33c2010aa00ef5877bc35b02ae658e3c9f27af )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Oct 2022 04:51:13 +0000 (21:51 -0700)]
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)
(cherry picked from commit
c39a0c335486fa8eac0f3030930f9e8769118a4f )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Oct 2022 16:08:56 +0000 (09:08 -0700)]
tutorial: remove "with single quotes" (GH-98204)
Closes GH-91856.
On Windows double quotes are sometimes better, on Unix usually
single quotes. It's not our place to explain that, so just don't.
(cherry picked from commit
5f8ca1b7969f34ee09adb7b28337ebd920e6215a )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 12 Oct 2022 16:13:24 +0000 (09:13 -0700)]
gh-96265: Formatting changes for faq/general (GH-98129)
* Some formatting changes for general faq
* Use list for Python versioning
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* New line for list, list for a/b/rc
* Line wrap for 80 chars
* More line wrap
* Remove PythonWin mention.
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
e9569ec43e2376aa77240cd630db4be07e8720f3 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 14:32:37 +0000 (07:32 -0700)]
gh-91485: Doc: Using Python syntax to document builtin Python functions. (GH-96579)
(cherry picked from commit
3c4cbd177f36777a04e78eb07ce20367560a66d3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Sat, 15 Oct 2022 16:12:18 +0000 (09:12 -0700)]
gh-98227: executionmodel.rst: except* can also bind names (GH-98256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
146f168fbf5b239158922f4defd494088c381525 )
Co-authored-by: BiscuitCandy <70342294+BiscuitCandy@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 17:52:45 +0000 (10:52 -0700)]
Faster sieve() recipe (GH-98287)
(cherry picked from commit
f4370318d67f1f2f686c1c3a4b217ccc461d31e5 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Oct 2022 19:25:58 +0000 (12:25 -0700)]
docs(typing): harmonize "See PEP x for more details" (GH-97927)
(cherry picked from commit
02389658a4751a0166e2ed22be112b646378a01b )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Vinay Sajip [Sat, 15 Oct 2022 20:51:58 +0000 (21:51 +0100)]
[3.11] [doc] Update logging cookbook with an example of custom handli… (GH-98296)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sun, 16 Oct 2022 17:16:48 +0000 (10:16 -0700)]
gh-85299: Add note warning about entry point guard for asyncio example (GH-93457)
(cherry picked from commit
79fd6ccdbe00ec95e4d33fc24fe76076282a334e )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Sun, 16 Oct 2022 19:41:41 +0000 (12:41 -0700)]
GH-91415: Mention alphabetical sort ordering in the Sorting HOWTO (GH-98336)
(cherry picked from commit
ae192178679c532e2c1b2d3b8c0928b77e0fe90e )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Pablo Galindo [Mon, 12 Sep 2022 10:54:49 +0000 (11:54 +0100)]
Post 3.11.0rc2
Pablo Galindo [Sun, 11 Sep 2022 19:21:50 +0000 (20:21 +0100)]
Python 3.11.0rc2
Miss Islington (bot) [Sat, 10 Sep 2022 15:03:35 +0000 (08:03 -0700)]
gh-94972: document that shield users need to keep a reference to their task (GH-96724)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
(cherry picked from commit
6281affee6423296893b509cd78dc563ca58b196 )
Co-authored-by: Hendrik Makait <hendrik.makait@gmail.com>
Miss Islington (bot) [Sat, 10 Sep 2022 13:58:45 +0000 (06:58 -0700)]
GH-96678: Fix undefined behavior in ceval.c (GH-96708)
(cherry picked from commit
50a70a083d34305a52fac4f5901bff2ead152d68 )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Sat, 10 Sep 2022 11:12:46 +0000 (04:12 -0700)]
Fix possible NULL pointer dereference in _PyThread_CurrentFrames (GH-96584)
(cherry picked from commit
88a7f661ca02c0eb76b8f19234b8293b70f171e2 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Sep 2022 20:17:04 +0000 (13:17 -0700)]
gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717)
A regression would still absolutely fail and even a flaky pass isn't
harmful as it'd fail most of the time across our N system test runs.
Windows has a low resolution timer and CI systems are prone to odd
timing so this just gives more leeway to avoid flakiness.
(cherry picked from commit
11e3548fd1d3445ccde971d613633b58d73c3016 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Mark Shannon [Fri, 9 Sep 2022 16:24:44 +0000 (17:24 +0100)]
[3.11] GH-96636: Remove all uses of NOTRACE_DISPATCH (GH-96643) (#96688)
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit
aa3b4cf779b3dddb84e094879b91703354910d8c )
Jelle Zijlstra [Fri, 9 Sep 2022 09:28:26 +0000 (02:28 -0700)]
[3.11] io: Add missing f (#96701)
Miss Islington (bot) [Thu, 8 Sep 2022 11:43:52 +0000 (04:43 -0700)]
gh-96352: Set AttributeError context in _PyObject_GenericGetAttrWithDict (GH-96353)
(cherry picked from commit
b9634ac776c24bc4d4a57859d884a94cdfe16043 )
Co-authored-by: philg314 <110174000+philg314@users.noreply.github.com>
Miss Islington (bot) [Thu, 8 Sep 2022 11:17:18 +0000 (04:17 -0700)]
GH-94808: Test __build_class__ inside non-dict __builtins__ (GH-95932) (#96004)
(cherry picked from commit
3adb4d864bb18a51334c922a732e5e3602799ba1 )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Thu, 8 Sep 2022 11:16:52 +0000 (04:16 -0700)]
gh-95914: Add paragraph about PEP 654 in main body of 'What's New in 3.11' (GH-95937)
(cherry picked from commit
1402d2ceca8ccef8c3538906b3f547365891d391 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 8 Sep 2022 11:03:53 +0000 (04:03 -0700)]
[3.11] gh-68163: Correct conversion of Rational instances to float (GH-25619) (#96556)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Mark Shannon [Thu, 8 Sep 2022 11:00:04 +0000 (12:00 +0100)]
[3.11] GH-96569: Avoid undefined behavior (#96616)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Thu, 8 Sep 2022 10:47:07 +0000 (03:47 -0700)]
gh-96652: Fix faulthandler chained signal without sigaction() (GH-96666)
Fix the faulthandler implementation of faulthandler.register(signal,
chain=True) if the sigaction() function is not available: don't call
the previous signal handler if it's NULL.
(cherry picked from commit
c580a81af91af4b9df85e466f8b48c3c9c86c3df )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 8 Sep 2022 07:30:48 +0000 (00:30 -0700)]
[3.11] gh-88287: Add BufferingFormatter documentation. (GH-96608) (GH-96675)
Miss Islington (bot) [Wed, 7 Sep 2022 21:49:17 +0000 (14:49 -0700)]
gh-96268: Fix loading invalid UTF-8 (GH-96270)
This makes tokenizer.c:valid_utf8 match stringlib/codecs.h:decode_utf8.
It also fixes an off-by-one error introduced in 3.10 for the line number when the tokenizer reports bad UTF8.
(cherry picked from commit
8bc356a7dd50cbdb46d10b8c7e457832431f5d9e )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Wed, 7 Sep 2022 19:46:09 +0000 (12:46 -0700)]
gh-96577: Fixes buffer overrun in _msi module (GH-96633)
(cherry picked from commit
4114bcc9ef7595a07196bcecf9c7d6d39f57f64d )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 7 Sep 2022 12:18:33 +0000 (05:18 -0700)]
gh-94808: Improve coverage of _PyBytes_FormatEx (GH-95895)
There were two specific areas not covered:
- %(name) syntax
- %*s syntax
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
dde15f5879c3576db42ee4366fb684747c31459f )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Wed, 7 Sep 2022 11:50:00 +0000 (04:50 -0700)]
gh-96641: Do not expose `KeyWrapper` in `_functoolsmodule.c` (gh-96642)
(cherry picked from commit
2fd7246e97c8cc09b4e3f22933693f9d68f08163 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 6 Sep 2022 23:40:17 +0000 (16:40 -0700)]
gh-96611: Fix error message for invalid UTF-8 in mid-multiline string (GH-96623)
(cherry picked from commit
05692c67c51b78a5a5a7bb61d646519025e38015 )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Tue, 6 Sep 2022 18:28:18 +0000 (11:28 -0700)]
GH-96572: fix use after free in trace refs build mode (GH-96618)
(cherry picked from commit
67444902a0f10419a557d0a2d3b8675c31b075a9 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Mark Shannon [Tue, 6 Sep 2022 17:42:41 +0000 (18:42 +0100)]
[3.11] GH-96612: Skip incomplete frames in tracemalloc traces. (GH-96613) (#96617)
(cherry picked from commit
95e271b2266b8f2e7b60ede86ccf3ede4a7f83eb )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Batuhan Taskaya [Tue, 6 Sep 2022 10:23:26 +0000 (13:23 +0300)]
[3.11] gh-92986: Fix ast.unparse when ImportFrom.level is None (GH-92992) (GH-96593)
This doesn't happen naturally, but is allowed by the ASDL and compiler.
We don't want to change ASDL for backward compatibility reasons
(GH-57645, GH-92987)
(cherry picked from commit
200c9a8da0e2b892c476807e986009c01327e781 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 Sep 2022 22:13:24 +0000 (15:13 -0700)]
gh-96559: Fixes Windows launcher handling of defaults using old-style tags, and adds What's New section (GH-96595)
(cherry picked from commit
80a9bd2e94b1759a7669fa811ed3526eb137c92d )
Co-authored-by: Steve Dower <steve.dower@python.org>
Irit Katriel [Mon, 5 Sep 2022 21:43:27 +0000 (22:43 +0100)]
[3.11] [doc] Update example in traceback doc (GH-96600) (GH-96603)
This Monty Python reference is of-its-time. It could seem inappropriate in the context of today's sensibilities around mental health.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
c4999f261fb0cb28ef713b48ef2e81ca5a3eb1e1 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 Sep 2022 19:03:53 +0000 (12:03 -0700)]
Add upstream openssl 1.1.1q patch for trivial build error on macOS (GH-96594)
(cherry picked from commit
991b3712a11a705efc6e45d22643bb2ccfb3eca5 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 5 Sep 2022 07:03:49 +0000 (00:03 -0700)]
[3.11] gh-84095: Fill documentation gap regarding user-defined objects. (GH-96574) (GH-96575)
Miss Islington (bot) [Sun, 4 Sep 2022 21:43:23 +0000 (14:43 -0700)]
Docs: alphabetically order sqlite3.Cursor attrs (GH-96565)
(cherry picked from commit
9e5568578234f0ecd003247c8a2deaeb69976b4b )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>