]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests...
Miss Islington (bot) [Thu, 28 Sep 2023 15:21:09 +0000 (08:21 -0700)] 
[3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002) (#110005)

gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002)
(cherry picked from commit c88037d137a98d7c399c7bd74d5117b5bcae1543)

Co-authored-by: Ned Deily <nad@python.org>
2 years ago[3.12] gh-109991: Update macOS installer to use OpenSSL 3.0.10. (#110004)
Ned Deily [Thu, 28 Sep 2023 15:20:36 +0000 (11:20 -0400)] 
[3.12] gh-109991: Update macOS installer to use OpenSSL 3.0.10. (#110004)

gh-109991: Update macOS installer to use OpenSSL 3.0.10.

(cherry picked from commit 884cd180876f60dc65bf00e33c0435be9918e410)

2 years ago[3.12] gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931) (#109937)
Miss Islington (bot) [Thu, 28 Sep 2023 15:17:02 +0000 (08:17 -0700)] 
[3.12] gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931) (#109937)

gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931)
(cherry picked from commit 3538930d87e6bdd2bfffa3f674a62cc91d359d31)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902...
Miss Islington (bot) [Wed, 27 Sep 2023 15:39:36 +0000 (08:39 -0700)] 
[3.12] no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902) (#109904)

no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902)
(cherry picked from commit 8100612bac2df1cbbb3a4cf646c4b82febf7807f)

Co-authored-by: lohaswinner <lohaswinner@gmail.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770) (#109971)
Miss Islington (bot) [Wed, 27 Sep 2023 15:39:10 +0000 (08:39 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770) (#109971)

* GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770)
(cherry picked from commit b35f0843fc15486b17bc945dde08b306b8e4e81f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Delete bad merge leftovers

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963) (#109966)
Miss Islington (bot) [Wed, 27 Sep 2023 15:38:42 +0000 (08:38 -0700)] 
[3.12] gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963) (#109966)

gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963)
(cherry picked from commit d9809e84fbf22ed8d90b212a9322260f7074bc9c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-107298: Document PyMODINIT_FUNC macro (GH-109236) (#109947)
Miss Islington (bot) [Wed, 27 Sep 2023 15:38:28 +0000 (08:38 -0700)] 
[3.12] gh-107298: Document PyMODINIT_FUNC macro (GH-109236) (#109947)

gh-107298: Document PyMODINIT_FUNC macro (GH-109236)

Document PyMODINIT_FUNC macro.

Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are
not documented. These macros should only be used to define the Python
C API. They should not be used outside Python code base.
(cherry picked from commit d7a27e527d7e669d2e45cff80ad725978226477c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (#109925)
Miss Islington (bot) [Wed, 27 Sep 2023 15:13:14 +0000 (08:13 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (#109925)

* GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766)
(cherry picked from commit 87ddfa74e2d37f6837351ed2bafc7d6d55fe2fd0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix)  (#109927)

Merge the two ``os`` entries

(cherry picked from commit 0e28d0f7a1bc3776cc07e0f8b91bc43fcdbb4206)

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-109889: comment out assertion indicating a failed optimization of a redunda...
Irit Katriel [Tue, 26 Sep 2023 15:17:32 +0000 (16:17 +0100)] 
[3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP (#109899)

* [3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP

* comment out the function to avoid warnings on it being unused

2 years ago[3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881) (...
Hugo van Kemenade [Tue, 26 Sep 2023 15:03:31 +0000 (09:03 -0600)] 
[3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881) (#109884)

[3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881).
(cherry picked from commit 7c61a361fc2e93375e22849fffbc20b60e94dbde)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (GH-109836...
Adam Turner [Tue, 26 Sep 2023 15:03:03 +0000 (16:03 +0100)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (GH-109836). (#109880)

(cherry picked from commit 86e7c611ac5bf067a697afbee6f9162704fd22db)

2 years ago[3.12] gh-109823: Adjust labels in compiler when removing an empty basic block which...
Miss Islington (bot) [Tue, 26 Sep 2023 00:37:52 +0000 (17:37 -0700)] 
[3.12] gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (GH-109839) (#109865)

gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (GH-109839)
(cherry picked from commit d73c12b88c2275fd44e27c91c24f3ac85419d2b8)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section...
Miss Islington (bot) [Tue, 26 Sep 2023 00:37:26 +0000 (17:37 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (GH-109751) (#109830)

* GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (GH-109751)
(cherry picked from commit bccc1b78002c924e8f4121fea5de7df5eb127548)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Remove the weakref get object functions

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754) (#109827)
Miss Islington (bot) [Tue, 26 Sep 2023 00:36:31 +0000 (17:36 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754) (#109827)

GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754)
(cherry picked from commit 4e478534d73e46aea5d10fb4e0ddf2c34440d0f6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760) (#109826)
Miss Islington (bot) [Mon, 25 Sep 2023 12:25:27 +0000 (05:25 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760) (#109826)

GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760)
(cherry picked from commit f08772cfd8f6602077e0989c1daa8bf74a8c15f1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753...
Miss Islington (bot) [Mon, 25 Sep 2023 12:25:16 +0000 (05:25 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753) (#109825)

GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753)
(cherry picked from commit 7495a93e0f843c40ebc5925c6a35225d41e52654)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance ...
Miss Islington (bot) [Mon, 25 Sep 2023 10:16:13 +0000 (03:16 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (GH-109755) (#109816)

GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (GH-109755)
(cherry picked from commit 7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools...
Miss Islington (bot) [Mon, 25 Sep 2023 10:16:00 +0000 (03:16 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal (GH-109768) (#109815)

GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal (GH-109768)
(cherry picked from commit 09a73d50f687b9b388b0386f400d9ba5a7c5f2a5)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756) ...
Miss Islington (bot) [Mon, 25 Sep 2023 10:15:46 +0000 (03:15 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756) (#109806)

GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756)
(cherry picked from commit 8d365b60bacf0a7edda24eba2d45aba1c2626fbc)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst`...
Miss Islington (bot) [Sun, 24 Sep 2023 11:55:28 +0000 (04:55 -0700)] 
[3.12] gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` (GH-109799) (#109800)

gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` (GH-109799)
(cherry picked from commit 649768fb6781ba810df44017fee1975a11d65e2f)

gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst`

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109634: Use :samp: role (GH-109635) (#109776)
Miss Islington (bot) [Sun, 24 Sep 2023 11:54:36 +0000 (04:54 -0700)] 
[3.12] gh-109634: Use :samp: role (GH-109635) (#109776)

gh-109634: Use :samp: role (GH-109635)
(cherry picked from commit 92af0cc580051fd1129c7a86af2cbadeb2aa36dc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767) (...
Miss Islington (bot) [Sun, 24 Sep 2023 11:53:56 +0000 (04:53 -0700)] 
[3.12] gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767) (#109773)

* gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767)

Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.

Many reviews and doc cleanup edits by Adam & Hugo. 🥳

(cherry picked from commit 5e7ea95d9d5c3b80a67ffbeebd76ce4fc327dd8e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* link to the discussion thread from whatsnew

Include the link to the discussion in the what's new text per @malemberg's comment on. https://github.com/python/cpython/pull/109767

(i'll follow up with a PR to main to include this edit there as well)

---------

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-95913: Add the release date for Python 3.11 (GH-109750) (#109771)
Miss Islington (bot) [Sun, 24 Sep 2023 11:53:27 +0000 (04:53 -0700)] 
[3.12] GH-95913: Add the release date for Python 3.11 (GH-109750) (#109771)

GH-95913: Add the release date for Python 3.11 (GH-109750)
(cherry picked from commit b10de68c6ceae1076cdc98c890b9802dc81a7f44)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Docs: Update Donghee Na's name (GH-109743) (#109758)
Hugo van Kemenade [Sun, 24 Sep 2023 11:52:26 +0000 (05:52 -0600)] 
[3.12] Docs: Update Donghee Na's name (GH-109743) (#109758)

* Update Donghee Na's name in Docs/

* Update Donghee Na's name in Misc/ACKS

* Update Donghee Na's name in Misc/NEWS.d/

2 years ago[3.12] gh-109719: Fix missing jump target labels when compiler reorders cold/warm...
Miss Islington (bot) [Sun, 24 Sep 2023 11:51:30 +0000 (04:51 -0700)] 
[3.12] gh-109719: Fix missing jump target labels when compiler reorders cold/warm blocks (GH-109734) (#109749)

gh-109719: Fix missing jump target labels when compiler reorders cold/warm blocks (GH-109734)
(cherry picked from commit 7c553991724d8d537f8444db73f016008753d77a)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.12] ACKS: Fix ordering; Correct Itamar Oren's surname; Add Adam Turner (GH-109737...
Miss Islington (bot) [Fri, 22 Sep 2023 16:53:20 +0000 (09:53 -0700)] 
[3.12] ACKS: Fix ordering; Correct Itamar Oren's surname; Add Adam Turner  (GH-109737) (#109741)

(cherry picked from commit 3e8fcb7df74248530c4280915c77e69811f69c3f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: asyncio (GH-109661) (#109733)
Miss Islington (bot) [Fri, 22 Sep 2023 14:03:00 +0000 (07:03 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: asyncio (GH-109661) (#109733)

GH-109190: Copyedit 3.12 What's New: asyncio (GH-109661)
(cherry picked from commit c32abf1f21c4bd32abcefe4d601611b152568961)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 669 (GH-109658) (#109732)
Miss Islington (bot) [Fri, 22 Sep 2023 14:02:26 +0000 (07:02 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 669 (GH-109658) (#109732)

GH-109190: Copyedit 3.12 What's New: PEP 669 (GH-109658)
(cherry picked from commit 168c3a8a893fcb42f8a4d078a1e9a6bd7ad65253)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Other Language Changes (GH-109660) (...
Miss Islington (bot) [Fri, 22 Sep 2023 13:29:59 +0000 (06:29 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Other Language Changes (GH-109660) (#109730)

GH-109190: Copyedit 3.12 What's New: Other Language Changes (GH-109660)
(cherry picked from commit cade5960ae5949899bccbec3af72b0287d0f6749)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 684 (GH-109657) (#109729)
Miss Islington (bot) [Fri, 22 Sep 2023 13:29:36 +0000 (06:29 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 684 (GH-109657) (#109729)

GH-109190: Copyedit 3.12 What's New: PEP 684 (GH-109657)
(cherry picked from commit e94a2232eac07eb526ec93ef01699513cf9b0fa3)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665) (...
Miss Islington (bot) [Fri, 22 Sep 2023 13:29:16 +0000 (06:29 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665) (#109728)

GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665)
(cherry picked from commit d9415f6a45c2c4163b593713ef765cb2a60f8aa7)

bytecode: suppress reference to removed LOAD_METHOD

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-106967: remove Release and Date fields from whatsnew for 3.12 (#109648)
Hugo van Kemenade [Fri, 22 Sep 2023 13:28:02 +0000 (07:28 -0600)] 
[3.12] gh-106967: remove Release and Date fields from whatsnew for 3.12 (#109648)

fix: remove Release and Date fields from whatsnew

python/release-tools template for "What's New" page automatically adds
a "Release" field and a "Date" field with the date set to "today", which
becomes the day the docs are built, which is forever increasing. This is
the topic of https://github.com/python/release-tools/issues/34 which is
yet to be fixed. In the meantime, this commit fixes it manually.

Co-authored-by: Oliver Rew <orew@bloomberg.net>
2 years ago[3.12] gh-109627: duplicated small exit blocks need to be assigned jump target labels...
Irit Katriel [Fri, 22 Sep 2023 13:27:29 +0000 (14:27 +0100)] 
[3.12] gh-109627: duplicated small exit blocks need to be assigned jump target labels (#109630) (#109632)

gh-109627: duplicated smalll exit blocks need to be assigned jump target labels (#109630)

(cherry picked from commit 9ccf0545efd5bc5af5aa51774030c471d49a972b)

2 years ago[3.12] gh-109408: Move Windows builds from Azure Pipelines PR to GitHub Actions ...
Miss Islington (bot) [Fri, 22 Sep 2023 13:26:58 +0000 (06:26 -0700)] 
[3.12] gh-109408: Move Windows builds from Azure Pipelines PR to GitHub Actions (GH-109569) (#109623)

gh-109408: Move Windows builds from Azure Pipelines PR to GitHub Actions (GH-109569)
(cherry picked from commit 14cdefa667f211401c9dfab33c4695e80b4e5e95)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Consistently show module names (GH-109664...
Miss Islington (bot) [Fri, 22 Sep 2023 13:21:52 +0000 (06:21 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Consistently show module names (GH-109664) (#109713)

(cherry picked from commit 291401389bf76981688d82a0d7bb61fb8355ff14)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: calendar (GH-109662) (#109716)
Hugo van Kemenade [Fri, 22 Sep 2023 13:02:27 +0000 (07:02 -0600)] 
[3.12] GH-109190: Copyedit 3.12 What's New: calendar (GH-109662) (#109716)

(cherry picked from commit 34ddcc3fa118168901fa0d3a69b3b5444fc2f943)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: tokenize (GH-109663) (#109715)
Miss Islington (bot) [Fri, 22 Sep 2023 13:02:03 +0000 (06:02 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: tokenize (GH-109663) (#109715)

(cherry picked from commit d3fe1a902fd060cc9fb41b768cc1e3ca5b52244d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 701 (GH-109655) (#109689)
Miss Islington (bot) [Fri, 22 Sep 2023 12:59:52 +0000 (05:59 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 701 (GH-109655) (#109689)

(cherry picked from commit e47d12e222507b1873a81f6955fdd3cfb8293b65)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Improved Error Messages (GH-109654) ...
Miss Islington (bot) [Fri, 22 Sep 2023 12:58:04 +0000 (05:58 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Improved Error Messages (GH-109654) (#109687)

(cherry picked from commit 16c24023c1f69f66d1e3313033be275a43329030)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)
Miss Islington (bot) [Fri, 22 Sep 2023 12:57:22 +0000 (05:57 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)

(cherry picked from commit 11636788da9e5e64ceef2ac80df330e8170a8d08)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 709 (GH-109656) (#109681)
Miss Islington (bot) [Fri, 22 Sep 2023 12:56:18 +0000 (05:56 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 709 (GH-109656) (#109681)

(cherry picked from commit 22b70ca480f5a2d19d3123cd35ab968fa65f224d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Misc itertool recipe improvements, mostly docstrings and comments (gh-109555...
Miss Islington (bot) [Fri, 22 Sep 2023 12:43:40 +0000 (05:43 -0700)] 
[3.12] Misc itertool recipe improvements, mostly docstrings and comments (gh-109555) (#109572)

(cherry picked from commit f2636d2c45aae0a04960dcfbc7d9a2a8a36ba3bc)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] GH-109209: Bump the minimum Sphinx version to 4.2 (GH-109210) (#109636)
Miss Islington (bot) [Fri, 22 Sep 2023 12:30:57 +0000 (05:30 -0700)] 
[3.12] GH-109209: Bump the minimum Sphinx version to 4.2 (GH-109210) (#109636)

GH-109209: Bump the minimum Sphinx version to 4.2 (GH-109210)
(cherry picked from commit 712cb173f8e1d02c625a40ae03bba57b0c1c032a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agoPost 3.12.0rc3
Thomas Wouters [Tue, 19 Sep 2023 11:02:42 +0000 (13:02 +0200)] 
Post 3.12.0rc3

2 years agoPython 3.12.0rc3 v3.12.0rc3
Thomas Wouters [Mon, 18 Sep 2023 19:47:01 +0000 (21:47 +0200)] 
Python 3.12.0rc3

2 years ago[3.12] gh-109496: Detect Py_DECREF() after dealloc in debug mode (GH-109539) (#109545)
Miss Islington (bot) [Mon, 18 Sep 2023 17:39:27 +0000 (10:39 -0700)] 
[3.12] gh-109496: Detect Py_DECREF() after dealloc in debug mode (GH-109539) (#109545)

gh-109496: Detect Py_DECREF() after dealloc in debug mode (GH-109539)

On a Python built in debug mode, Py_DECREF() now calls
_Py_NegativeRefcount() if the object is a dangling pointer to
deallocated memory: memory filled with 0xDD "dead byte" by the debug
hook on memory allocators. The fix is to check the reference count
*before* checking for _Py_IsImmortal().

Add test_decref_freed_object() to test_capi.test_misc.
(cherry picked from commit 0bb0d88e2d4e300946e399e088e2ff60de2ccf8c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109408: Azure Pipelines: test 3.12 branch (GH-109453) (#109535)
Miss Islington (bot) [Mon, 18 Sep 2023 15:51:23 +0000 (08:51 -0700)] 
[3.12] gh-109408: Azure Pipelines: test 3.12 branch (GH-109453) (#109535)

gh-109408: Azure Pipelines: test 3.12 branch (GH-109453)
(cherry picked from commit dd5d2141abf78fcd787f12654f08bf1ee92288bf)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-109371: Fix monitoring with instruction events set (gh-109385) (#109542)
Miss Islington (bot) [Mon, 18 Sep 2023 15:40:51 +0000 (08:40 -0700)] 
[3.12] gh-109371: Fix monitoring with instruction events set (gh-109385) (#109542)

gh-109371: Fix monitoring with instruction events set (gh-109385)
(cherry picked from commit 412f5e85d6b9f2e90c57c54539d06c7a025a472a)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2 years ago[3.12] gh-108843: fix ast.unparse for f-string with many quotes (GH-108981) (#109541)
Miss Islington (bot) [Mon, 18 Sep 2023 14:44:13 +0000 (07:44 -0700)] 
[3.12] gh-108843: fix ast.unparse for f-string with many quotes (GH-108981) (#109541)

gh-108843: fix ast.unparse for f-string with many quotes (GH-108981)
(cherry picked from commit 23f9f6f46454455bc6015e83ae5b5e946dae7698)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.12] gh-102251: Disable non-rerunnable test in test_import (GH-106013) (#109540)
Miss Islington (bot) [Mon, 18 Sep 2023 14:31:01 +0000 (07:31 -0700)] 
[3.12] gh-102251: Disable non-rerunnable test in test_import (GH-106013) (#109540)

gh-102251: Disable non-rerunnable test in test_import (GH-106013)
(cherry picked from commit 4849a80dd1cbbc5010e8749ba60eb91a541ae4e7)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.12] Fix extraneous backslashes in hashlib docs (GH-109468) (#109530)
Miss Islington (bot) [Mon, 18 Sep 2023 10:29:19 +0000 (03:29 -0700)] 
[3.12] Fix extraneous backslashes in hashlib docs (GH-109468) (#109530)

Fix extraneous backslashes in hashlib docs (GH-109468)
(cherry picked from commit ce5b3e19e6fb940fa72db1b98a8df80f6e464265)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2 years ago[3.12] gh-109408: Remove Ubuntu unit tests from Azure Pipelines (GH-109452) (#109519)
Miss Islington (bot) [Sun, 17 Sep 2023 23:22:15 +0000 (16:22 -0700)] 
[3.12] gh-109408: Remove Ubuntu unit tests from Azure Pipelines (GH-109452) (#109519)

gh-109408: Remove Ubuntu unit tests from Azure Pipelines (GH-109452)
(cherry picked from commit a75daed7e004ee9a53b160307c4c072656176a02)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-109451: Fix wrong format specifier in logging documentation (GH-109465...
Miss Islington (bot) [Sun, 17 Sep 2023 20:50:37 +0000 (13:50 -0700)] 
[3.12] gh-109451: Fix wrong format specifier in logging documentation (GH-109465) (#109483)

gh-109451: Fix wrong format specifier in logging documentation (GH-109465)
(cherry picked from commit 929cc4e4a0999b777e1aa94f9c007db720e67f43)

Co-authored-by: AlberLC <37489786+AlberLC@users.noreply.github.com>
2 years ago[3.12] gh-109414: Add some basic information about venvs in the introduction. (GH...
Miss Islington (bot) [Sun, 17 Sep 2023 20:50:12 +0000 (13:50 -0700)] 
[3.12] gh-109414: Add some basic information about venvs in the introduction. (GH-109440) (#109481)

gh-109414: Add some basic information about venvs in the introduction. (GH-109440)
(cherry picked from commit a6846d45ff3c836bc859c40e7684b57df991dc05)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109474: Update two Unix packaging URLs (GH-109307) (#109477)
Miss Islington (bot) [Sun, 17 Sep 2023 20:50:00 +0000 (13:50 -0700)] 
[3.12] gh-109474: Update two Unix packaging URLs  (GH-109307) (#109477)

gh-109474: Update two Unix packaging URLs  (GH-109307)

update packaging URLs

fix a broken URL for fedora RPM packaging guide and fix a URL redirect for Slackware packaging guide.
(cherry picked from commit 0b38ce440bd76b3d25b6d042ee9613841fb4a947)

Co-authored-by: partev <petrosyan@gmail.com>
2 years ago[3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI...
Gregory P. Smith [Sun, 17 Sep 2023 20:49:42 +0000 (13:49 -0700)] 
[3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI support (#109471)

[3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI support.

We're not fixing CGIHTTPRequestHandler as it is deprecated in 3.13 to go
away in 3.15.  This just removes noise from our test suite when warnings
are rightfully enabled.

If the long pre-existing fork+threading mix here ever causes anyone
deadlocks as is possible, disabling the test entirely on that platform
makes sense rather than attempting to fix
http.server.CGIHTTPRequestHandler or refactor to not use a threaded
server in the test.

2 years ago[3.12] Docs: Superseded modules: list only module names (GH-109439) (#109445)
Miss Islington (bot) [Fri, 15 Sep 2023 14:11:17 +0000 (07:11 -0700)] 
[3.12] Docs: Superseded modules: list only module names (GH-109439) (#109445)

Docs: Superseded modules: list only module names (GH-109439)
(cherry picked from commit b434dd7e3625d442392b4adf952685c8adf769f7)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-109395: Remove skipped macOS builds from Azure Pipelines (GH-109400) (...
Miss Islington (bot) [Fri, 15 Sep 2023 11:23:08 +0000 (04:23 -0700)] 
[3.12] gh-109395: Remove skipped macOS builds from Azure Pipelines (GH-109400) (#109441)

gh-109395: Remove skipped macOS builds from Azure Pipelines (GH-109400)
(cherry picked from commit 1ece084be3684e06101aa1efa82d3ed98c99c432)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412) (...
Miss Islington (bot) [Fri, 15 Sep 2023 09:32:05 +0000 (02:32 -0700)] 
[3.12] gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412) (#109433)

gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412)
(cherry picked from commit fa493900fbf19cbfac44164f3d8acb4f598ff3c1)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-109219: propagate free vars through type param scopes (GH-109377) (#109410)
Miss Islington (bot) [Thu, 14 Sep 2023 22:42:39 +0000 (15:42 -0700)] 
[3.12] gh-109219: propagate free vars through type param scopes (GH-109377) (#109410)

gh-109219: propagate free vars through type param scopes (GH-109377)
(cherry picked from commit 909adb5092c0ae9426814742d97932204b211cfb)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109426)
Miss Islington (bot) [Thu, 14 Sep 2023 22:41:33 +0000 (15:41 -0700)] 
[3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109426)

gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423)

Use a longer key: FIPS mode requires at least of at least 112 bits.
The previous key was only 32 bits.
(cherry picked from commit e091b9f20fa8e409003af79f3c468b8225e6dcd3)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394) (#109416)
Miss Islington (bot) [Thu, 14 Sep 2023 22:41:18 +0000 (15:41 -0700)] 
[3.12] gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394) (#109416)

gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394)
(cherry picked from commit 21e80f4c1925aaafae199840f8737b5c39a82c70)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-105658: fix excess trace events for except block ending with a conditional...
Irit Katriel [Thu, 14 Sep 2023 22:41:03 +0000 (23:41 +0100)] 
[3.12] gh-105658: fix excess trace events for except block ending with a conditional block (#109384) (#109411)

gh-105658: fix excess trace events for except block ending with a conditional block (#109384)

(cherry picked from commit 4a54074a0f5579d417445ec28427cd0ed5aa01f4)

2 years ago[3.12] gh-109341: Fix crash on compiling invalid AST including TypeAlias (GH-109349...
Miss Islington (bot) [Thu, 14 Sep 2023 22:40:19 +0000 (15:40 -0700)] 
[3.12] gh-109341: Fix crash on compiling invalid AST including TypeAlias (GH-109349) (#109381)

gh-109341: Fix crash on compiling invalid AST including TypeAlias (GH-109349)
(cherry picked from commit 987b4bc0870e1e29a88275dc3fa39bf2c3dcc763)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-60283: Check for redefined test names in CI (GH-109161) (#109365)
Miss Islington (bot) [Thu, 14 Sep 2023 22:38:54 +0000 (15:38 -0700)] 
[3.12] gh-60283: Check for redefined test names in CI (GH-109161) (#109365)

* gh-60283: Check for redefined test names in CI (GH-109161)
(cherry picked from commit 3cb9a8edca6e3fa0f0045b03a9a6444cf8f7affe)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Update exclude list for 3.12

* Explicitly exclude files which failed to lint/parse

* Sort to avoid future merge conflicts

---------

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Fix variable name in dis documentation example (GH-109343) (#109364)
Miss Islington (bot) [Wed, 13 Sep 2023 10:37:46 +0000 (03:37 -0700)] 
[3.12] Fix variable name in dis documentation example (GH-109343) (#109364)

Fix variable name in dis documentation example (GH-109343)

BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency.
(cherry picked from commit a0c06a4f933faccd7f8201701b2491d38464212c)

Co-authored-by: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com>
2 years ago[3.12] gh-105189: fix importlib.resources.abc deprecation docs (GH-105232) (#109363)
Miss Islington (bot) [Wed, 13 Sep 2023 10:37:24 +0000 (03:37 -0700)] 
[3.12] gh-105189: fix importlib.resources.abc deprecation docs (GH-105232) (#109363)

gh-105189: fix importlib.resources.abc deprecation docs (GH-105232)
(cherry picked from commit 6c0ddca409c1ed27b11c70386cd6c88be5d00115)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-104736: Fix test_gdb tests on ppc64le with clang (GH-109360) (#109361)
Miss Islington (bot) [Wed, 13 Sep 2023 10:37:10 +0000 (03:37 -0700)] 
[3.12] gh-104736: Fix test_gdb tests on ppc64le with clang (GH-109360) (#109361)

gh-104736: Fix test_gdb tests on ppc64le with clang (GH-109360)

Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex:
Fedora 38). Search patterns in gdb "bt" command output to detect
when gdb fails to retrieve the traceback. For example, skip a test if
"Backtrace stopped: frame did not save the PC" is found.
(cherry picked from commit 44d9a71ea246e7c3fb478d9be62c16914be6c545)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109357: Fix test_monitoring.test_gh108976() (GH-109358) (#109359)
Miss Islington (bot) [Wed, 13 Sep 2023 10:36:30 +0000 (03:36 -0700)] 
[3.12] gh-109357: Fix test_monitoring.test_gh108976() (GH-109358) (#109359)

gh-109357: Fix test_monitoring.test_gh108976() (GH-109358)

The test now calls free_tool_id() so it can be run multiple times in
the same process. For example, the following command no longer fails:

    python -m test test_monitoring -R 3:3
(cherry picked from commit 388d91cd474de80355f5a8f6a26e8962813a3128)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] Update workflow permissions in require-pr-label Action (GH-109342) (#109348)
Miss Islington (bot) [Wed, 13 Sep 2023 10:36:03 +0000 (03:36 -0700)] 
[3.12] Update workflow permissions in require-pr-label Action (GH-109342) (#109348)

Update workflow permissions in require-pr-label Action (GH-109342)

Change the permission from `read` to `write`.
(cherry picked from commit 44c8699196c1951037bc549c895ea5af26c7254e)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
2 years ago[3.12] GH-104395: Add a link in 'Meta Information' to the docs download page (GH...
Miss Islington (bot) [Wed, 13 Sep 2023 10:35:42 +0000 (03:35 -0700)] 
[3.12] GH-104395: Add a link in 'Meta Information' to the docs download page (GH-104443) (#109345)

GH-104395: Add a link in 'Meta Information' to the docs download page (GH-104443)
(cherry picked from commit 90cf345ed42ae4d17d2a073718985eb3432a7c20)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-109184: update traceback module doc w.r.t notes (message is no longer alway...
Irit Katriel [Wed, 13 Sep 2023 10:35:26 +0000 (11:35 +0100)] 
[3.12] gh-109184: update traceback module doc w.r.t notes (message is no longer always at the end) (#109201) (#109334)

gh-109184: update traceback module doc w.r.t notes (message is no longer always at the end) (#109201)

(cherry picked from commit 0e76cc359ba5d5e29d7c75355d7c1bc7e817eecf)

2 years ago[3.12] gh-109114: Relax the check for invalid lambdas inside f-strings to avoid false...
Pablo Galindo Salgado [Tue, 12 Sep 2023 15:52:25 +0000 (16:52 +0100)] 
[3.12] gh-109114: Relax the check for invalid lambdas inside f-strings to avoid false positives (GH-109121). (#109155)

(cherry picked from commit 5bda2f637e1cfbca45a83aa6e22db25498064b27)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
2 years ago[3.12] gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH...
Miss Islington (bot) [Tue, 12 Sep 2023 14:31:26 +0000 (07:31 -0700)] 
[3.12] gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196) (#109297)

gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196)

Fixes GH-109118. Fixes GH-109194.

(cherry picked from commit b88d9e75f68f102aca45fa62e2b0e2e2ff46d810)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years ago[3.12] Fix iter_index() to work with lists which do not support stop=None. (gh-109306...
Miss Islington (bot) [Tue, 12 Sep 2023 14:23:20 +0000 (07:23 -0700)] 
[3.12] Fix iter_index() to work with lists which do not support stop=None. (gh-109306) (#109310)

Fix iter_index() to work with lists which do not support stop=None. (gh-109306)
(cherry picked from commit f2a55fecd063244a5fd09a38f673f0781f8802d1)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109304)
Miss Islington (bot) [Tue, 12 Sep 2023 14:23:03 +0000 (07:23 -0700)] 
[3.12] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109304)

gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299)

Fix test_os.test_access_denied() when the TEMP environment variable
is equal to the current working directory. Run the test using a
different filename, since self.fname already exists in this case.
(cherry picked from commit 7dedfd36dc16d9e1e15d7d0b0a636dd401a5a543)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH...
Miss Islington (bot) [Tue, 12 Sep 2023 14:22:43 +0000 (07:22 -0700)] 
[3.12] gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) (#109301)

gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298)

test_asyncio and test_compileall now clean up multiprocessing by
calling multiprocessing _cleanup_tests(): explicitly clean up
resources and stop background processes like the resource tracker.
(cherry picked from commit 09ea4b8706165fd9474165090a0ba86509abd6c8)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (#109296)
Miss Islington (bot) [Tue, 12 Sep 2023 14:21:08 +0000 (07:21 -0700)] 
[3.12] gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (#109296)

gh-109292: add symtable impact of PEP 709 to What's New (GH-109293)
(cherry picked from commit 2b1e2f1cd154e6df553eda7936715ea0622b4ecf)

Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years ago[3.12] gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-10928...
Miss Islington (bot) [Tue, 12 Sep 2023 14:20:41 +0000 (07:20 -0700)] 
[3.12] gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (#109291)

gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289)
(cherry picked from commit ceeb4173aee7b835f553a8286feaa48b98c16124)

Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years ago[3.12] gh-107322: zipapp: Remove the suggestion to remove .dist-info directories...
Miss Islington (bot) [Tue, 12 Sep 2023 14:19:05 +0000 (07:19 -0700)] 
[3.12] gh-107322: zipapp: Remove the suggestion to remove .dist-info directories (GH-107296) (#109281)

gh-107322: zipapp: Remove the suggestion to remove .dist-info directories (GH-107296)

Removed zipapp suggestion to rm .dist-info subdirectories. This totally breaks importlib.metadata
(cherry picked from commit 1ee50e2a78f644d81d341a08562073ad169d8cc7)

Co-authored-by: wim glenn <hey@wimglenn.com>
2 years ago[3.12] gh-90805: Make sure test_functools works with and without _functoolsmodule...
Miss Islington (bot) [Tue, 12 Sep 2023 14:17:05 +0000 (07:17 -0700)] 
[3.12] gh-90805: Make sure test_functools works with and without _functoolsmodule (GH-108644) (#109275)

gh-90805: Make sure test_functools works with and without _functoolsmodule (GH-108644)
(cherry picked from commit baa6dc8e388e71b2a00347143ecefb2ad3a8e53b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109190: What's New in 3.12: Add subheadings to removals for easy linking...
Miss Islington (bot) [Tue, 12 Sep 2023 14:16:35 +0000 (07:16 -0700)] 
[3.12] gh-109190: What's New in 3.12: Add subheadings to removals for easy linking (GH-109159) (#109273)

gh-109190: What's New in 3.12: Add subheadings to removals for easy linking (GH-109159)
(cherry picked from commit 57b6205523d934d61b6308d63ef72c494c7d2b7e)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-109182: Fix and improve tests for gh-108654 (GH-109189) (#109271)
Miss Islington (bot) [Tue, 12 Sep 2023 14:15:40 +0000 (07:15 -0700)] 
[3.12] gh-109182: Fix and improve tests for gh-108654 (GH-109189) (#109271)

gh-109182: Fix and improve tests for gh-108654 (GH-109189)
(cherry picked from commit c0f488b88f2a54d76256818e2841d868fecfd396)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] GH-108976. Keep monitoring data structures valid during de-optimization during...
Mark Shannon [Tue, 12 Sep 2023 14:14:49 +0000 (15:14 +0100)] 
[3.12] GH-108976. Keep monitoring data structures valid during de-optimization during callback. (GH-109131) (#109268)

GH-108976. Keep monitoring data structures valid during de-optimization during callback. (GH-109131)

2 years ago[3.12] Test DocTestFinder directly instead of calling support.run_doctest() (GH-10891...
Miss Islington (bot) [Tue, 12 Sep 2023 14:13:45 +0000 (07:13 -0700)] 
[3.12] Test DocTestFinder directly instead of calling support.run_doctest() (GH-108917) (#109259)

Test DocTestFinder directly instead of calling support.run_doctest() (GH-108917)
(cherry picked from commit 0abc935086931d4915ea3c45cffffecb31e7a45c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233...
Miss Islington (bot) [Tue, 12 Sep 2023 14:03:47 +0000 (07:03 -0700)] 
[3.12] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233) (#109241)

gh-109230: test_pyexpat no longer depends on the current directory (GH-109233)

Fix test_pyexpat.test_exception(): it can now be run from a directory
different than Python source code directory. Before, the test failed
in this case.

Skip the test if Modules/pyexpat.c source is not available. Skip also
the test on Python implementations other than CPython.
(cherry picked from commit e55aab95786e0e9fb36a9a1122d2d0fb3d2403cd)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109237: Fix test_site for non-ASCII working directory (GH-109238) (#109239)
Miss Islington (bot) [Tue, 12 Sep 2023 14:03:18 +0000 (07:03 -0700)] 
[3.12] gh-109237: Fix test_site for non-ASCII working directory (GH-109238) (#109239)

gh-109237: Fix test_site for non-ASCII working directory (GH-109238)

Fix test_site.test_underpth_basic() when the working directory
contains at least one non-ASCII character: encode the "._pth" file to
UTF-8 and enable the UTF-8 Mode to use UTF-8 for the child process
stdout.
(cherry picked from commit cbb3a6f8ada3d133c3ab9f9465b65067fce5bb42)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222) (#109223)
Miss Islington (bot) [Tue, 12 Sep 2023 14:00:54 +0000 (07:00 -0700)] 
[3.12] Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222) (#109223)

Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222)
(cherry picked from commit 2dd6a86c4ee604b331ed739c2508b0d0114993c6)

Co-authored-by: Delgan <4193924+Delgan@users.noreply.github.com>
2 years ago[3.12] Improve the sieve() recipe in the itertools docs (gh-109199) (#109203)
Miss Islington (bot) [Tue, 12 Sep 2023 14:00:33 +0000 (07:00 -0700)] 
[3.12] Improve the sieve() recipe in the itertools docs (gh-109199) (#109203)

Improve the sieve() recipe in the itertools docs (gh-109199)

Lazier sieve
(cherry picked from commit d3ed9921cdd8ac291fbfe3adf42f7730d3a14dbc)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188)
Miss Islington (bot) [Tue, 12 Sep 2023 14:00:13 +0000 (07:00 -0700)] 
[3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188)

Fix an ironic typo in a code comment. (gh-109186)
(cherry picked from commit 75cd86599bad05cb372aed9fccc3ff884cd38b70)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 function (GH...
Jelle Zijlstra [Tue, 12 Sep 2023 13:59:09 +0000 (06:59 -0700)] 
[3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 function (GH-109123) (#109173)

* gh-109118: Fix runtime crash when NameError happens in PEP 695 function (#109123)

(cherry picked from commit 17f994174de9211b2baaff217eeb1033343230fc)

* [3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 function (GH-109123).
(cherry picked from commit 17f994174de9211b2baaff217eeb1033343230fc)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test...
Miss Islington (bot) [Tue, 12 Sep 2023 13:56:02 +0000 (06:56 -0700)] 
[3.12] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142) (#109149)

GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142)

Use `asyncio.sleep(0)` instead of short sleeps.
(cherry picked from commit ccd48623d4860e730a16f3f252d67bfea8c1e905)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years ago[3.12] gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048...
Miss Islington (bot) [Tue, 12 Sep 2023 13:53:16 +0000 (06:53 -0700)] 
[3.12] gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) (#109122)

gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048)

add guard so that ``Enum('bar')`` raises a TypeError instead of
creating a new enum class called `bar`.  To create the new but
empty class, use:

    huh = Enum('bar', names=())
(cherry picked from commit c74e440168fab9bf91346471087a394af13fa2db)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years ago[3.12] gh-108732: include comprehension locals in frame.f_locals (GH-109026) (#109097)
Miss Islington (bot) [Tue, 12 Sep 2023 13:50:29 +0000 (06:50 -0700)] 
[3.12] gh-108732: include comprehension locals in frame.f_locals (GH-109026) (#109097)

gh-108732: include comprehension locals in frame.f_locals (GH-109026)
(cherry picked from commit f2584eade378910b9ea18072bb1dab3dd58e23bb)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-106922: Fix error location for constructs with spaces and parentheses ...
Miss Islington (bot) [Fri, 8 Sep 2023 17:04:28 +0000 (10:04 -0700)] 
[3.12] gh-106922: Fix error location for constructs with spaces and parentheses (GH-108959) (#109147)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years ago[3.12] gh-103186: Suppress RuntimeWarning about unclosed async iterator in test_sys_s...
Miss Islington (bot) [Fri, 8 Sep 2023 15:56:11 +0000 (08:56 -0700)] 
[3.12] gh-103186: Suppress RuntimeWarning about unclosed async iterator in test_sys_settrace (GH-109075) (#109138)

gh-103186: Suppress RuntimeWarning about unclosed async iterator in test_sys_settrace (GH-109075)
(cherry picked from commit d485551c9d1792ff3539eef1d6374bd4c01dcd5d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] Add version directives to ast docs (GH-108788) (#109106)
Miss Islington (bot) [Fri, 8 Sep 2023 13:25:55 +0000 (06:25 -0700)] 
[3.12] Add version directives to ast docs (GH-108788) (#109106)

Add version directives to ast docs (GH-108788)
(cherry picked from commit 74fc96bc60f5c02bde50ff2f3516add99483e402)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.12] gh-68403: Fix test_coverage in test_trace (GH-108910) (#109104)
Miss Islington (bot) [Fri, 8 Sep 2023 13:25:18 +0000 (06:25 -0700)] 
[3.12] gh-68403: Fix test_coverage in test_trace (GH-108910) (#109104)

gh-68403: Fix test_coverage in test_trace (GH-108910)

Its behavior no longer affected by test running options such as -m.
(cherry picked from commit 7e1a7abb9831965cdec477e62dbe4f8415b8a582)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087) (#109103)
Miss Islington (bot) [Fri, 8 Sep 2023 13:24:55 +0000 (06:24 -0700)] 
[3.12] gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087) (#109103)

gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087)

This un-skips this test now that pythontest.net implements appropriate firewall
rules for it.
(cherry picked from commit 1829a3c9a3712b6a68a3a449e4a08787c73da51d)

Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
2 years ago[3.12] gh-107924: re-order os.sendfile() flag documentation (GH-107926) (#109099)
Miss Islington (bot) [Fri, 8 Sep 2023 13:24:18 +0000 (06:24 -0700)] 
[3.12] gh-107924: re-order os.sendfile() flag documentation (GH-107926) (#109099)

gh-107924: re-order os.sendfile() flag documentation (GH-107926)
(cherry picked from commit 403ab1306a6e9860197bce57eadcb83418966f21)

Co-authored-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>