Commit graph

119701 commits

Author SHA1 Message Date
Adam Turner
335e3d59e0
[3.12] GH-109190: Copyedit 3.12 What's New: Bytecode (GH-109821) (#110047)
.
(cherry picked from commit 526380e286)
2023-09-28 23:38:08 +02:00
Miss Islington (bot)
ef99f5e968
[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 c88037d137)

Co-authored-by: Ned Deily <nad@python.org>
2023-09-28 17:21:09 +02:00
Ned Deily
f3b61850ce
[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 884cd18087)
2023-09-28 17:20:36 +02:00
Miss Islington (bot)
60046a7713
[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 3538930d87)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-28 17:17:02 +02:00
Miss Islington (bot)
98a2d0e13b
[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 8100612bac)

Co-authored-by: lohaswinner <lohaswinner@gmail.com>
2023-09-27 17:39:36 +02:00
Miss Islington (bot)
26f542de22
[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 b35f0843fc)

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>
2023-09-27 17:39:10 +02:00
Miss Islington (bot)
2c557932e9
[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 d9809e84fb)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-27 17:38:42 +02:00
Miss Islington (bot)
fc4fddb139
[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 d7a27e527d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-27 17:38:28 +02:00
Miss Islington (bot)
1d6ef7e609
[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 87ddfa74e2)

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 0e28d0f7a1)

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-27 17:13:14 +02:00
Irit Katriel
648198c37f
[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
2023-09-26 17:17:32 +02:00
Hugo van Kemenade
57ff216215
[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 7c61a361fc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-26 17:03:31 +02:00
Adam Turner
d2a2e25855
[3.12] GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (GH-109836). (#109880)
(cherry picked from commit 86e7c611ac)
2023-09-26 17:03:03 +02:00
Miss Islington (bot)
538f505a37
[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 d73c12b88c)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2023-09-26 02:37:52 +02:00
Miss Islington (bot)
a19251764a
[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 bccc1b7800)

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>
2023-09-26 02:37:26 +02:00
Miss Islington (bot)
de6d17c5dd
[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 4e478534d7)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-26 02:36:31 +02:00
Miss Islington (bot)
d4dd8a17e1
[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 f08772cfd8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-25 14:25:27 +02:00
Miss Islington (bot)
d158bbc2ef
[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 7495a93e0f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-25 14:25:16 +02:00
Miss Islington (bot)
52b2f9f668
[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 7b8bfe1644)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-25 12:16:13 +02:00
Miss Islington (bot)
cb4a8c273d
[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 09a73d50f6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-25 12:16:00 +02:00
Miss Islington (bot)
d56835f855
[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 8d365b60ba)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-25 12:15:46 +02:00
Miss Islington (bot)
6f1d4552b3
[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 649768fb67)


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

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-24 13:55:28 +02:00
Miss Islington (bot)
2622b13046
[3.12] gh-109634: Use :samp: role (GH-109635) (#109776)
gh-109634: Use :samp: role (GH-109635)
(cherry picked from commit 92af0cc580)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-09-24 13:54:36 +02:00
Miss Islington (bot)
62df559448
[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 5e7ea95d9d)

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>
2023-09-24 13:53:56 +02:00
Miss Islington (bot)
46207624b7
[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 b10de68c6c)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-24 13:53:27 +02:00
Hugo van Kemenade
722660b48b
[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/
2023-09-24 13:52:26 +02:00
Miss Islington (bot)
633bd6e428
[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 7c55399172)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2023-09-24 13:51:30 +02:00
Miss Islington (bot)
f6287bd46f
[3.12] ACKS: Fix ordering; Correct Itamar Oren's surname; Add Adam Turner (GH-109737) (#109741)
(cherry picked from commit 3e8fcb7df7)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 18:53:20 +02:00
Miss Islington (bot)
284de30f50
[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 c32abf1f21)

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>
2023-09-22 14:03:00 +00:00
Miss Islington (bot)
8985a77bf6
[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 168c3a8a89)

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>
2023-09-22 14:02:26 +00:00
Miss Islington (bot)
66a8777c7e
[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 cade5960ae)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:29:59 +02:00
Miss Islington (bot)
388f90a673
[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 e94a2232ea)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:29:36 +02:00
Miss Islington (bot)
5030d386f8
[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 d9415f6a45)


bytecode: suppress reference to removed LOAD_METHOD

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:29:16 +02:00
Hugo van Kemenade
c03ed79f22
[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>
2023-09-22 15:28:02 +02:00
Irit Katriel
107e14820a
[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 9ccf0545ef)
2023-09-22 15:27:29 +02:00
Miss Islington (bot)
92a347997f
[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 14cdefa667)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-22 15:26:58 +02:00
Miss Islington (bot)
5796d69b00
[3.12] GH-109190: Copyedit 3.12 What's New: Consistently show module names (GH-109664) (#109713)
(cherry picked from commit 291401389b)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2023-09-22 15:21:52 +02:00
Hugo van Kemenade
b7801d7d1f
[3.12] GH-109190: Copyedit 3.12 What's New: calendar (GH-109662) (#109716)
(cherry picked from commit 34ddcc3fa1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:02:27 +02:00
Miss Islington (bot)
0100ce5deb
[3.12] GH-109190: Copyedit 3.12 What's New: tokenize (GH-109663) (#109715)
(cherry picked from commit d3fe1a902f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:02:03 +02:00
Miss Islington (bot)
0030c80a5a
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 701 (GH-109655) (#109689)
(cherry picked from commit e47d12e222)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:59:52 +02:00
Miss Islington (bot)
5f685ed783
[3.12] GH-109190: Copyedit 3.12 What's New: Improved Error Messages (GH-109654) (#109687)
(cherry picked from commit 16c24023c1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:58:04 +02:00
Miss Islington (bot)
92f2e33ebc
[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)
(cherry picked from commit 11636788da)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:57:22 +02:00
Miss Islington (bot)
6c8cbb3a7c
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 709 (GH-109656) (#109681)
(cherry picked from commit 22b70ca480)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:56:18 +02:00
Miss Islington (bot)
0015a9aad5
[3.12] Misc itertool recipe improvements, mostly docstrings and comments (gh-109555) (#109572)
(cherry picked from commit f2636d2c45)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-09-22 14:43:40 +02:00
Miss Islington (bot)
9e4ac21c46
[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 712cb173f8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:30:57 +02:00
Thomas Wouters
4a0c118d6a Post 3.12.0rc3 2023-09-19 13:02:42 +02:00
Thomas Wouters
b973ab3c3b Python 3.12.0rc3 2023-09-18 21:48:09 +02:00
Miss Islington (bot)
74a7f5d2da
[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 0bb0d88e2d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-18 17:39:27 +00:00
Miss Islington (bot)
0620bc7f78
[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 dd5d2141ab)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-18 17:51:23 +02:00
Miss Islington (bot)
9412a874a7
[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 412f5e85d6)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2023-09-18 17:40:51 +02:00
Miss Islington (bot)
2401b980da
[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 23f9f6f464)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-09-18 14:44:13 +00:00