]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
9 months ago[3.12] gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896...
Miss Islington (bot) [Sun, 9 Feb 2025 15:39:23 +0000 (16:39 +0100)] 
[3.12] gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896) (#129905)

gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896)

Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring
(cherry picked from commit c53730171f18b90202aa0918b3c05412222bb1ec)

Co-authored-by: Nikola Savic <76233425+nikolasavic3@users.noreply.github.com>
9 months ago[3.12] gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) (#129885)
Miss Islington (bot) [Sun, 9 Feb 2025 09:19:55 +0000 (10:19 +0100)] 
[3.12] gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) (#129885)

gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859)

In `help.copy_strip`, only copy the text `<section>`.  In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html.  Add a reminder at the top of idle.rst to run copy_strip after changes.
---------

(cherry picked from commit 6fbf15f98e04f582aeccf5334a94840149ff7cd5)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
9 months ago[3.12] gh-129876: Initial 3.14 News3.txt entries (GH-129881) (#129883)
Terry Jan Reedy [Sun, 9 Feb 2025 07:32:52 +0000 (02:32 -0500)] 
[3.12] gh-129876: Initial 3.14 News3.txt entries (GH-129881) (#129883)

9 months ago[3.12] gh-112953: Update news to finish 3.13 as main (GH-129877) (#129879)
Miss Islington (bot) [Sun, 9 Feb 2025 06:30:46 +0000 (07:30 +0100)] 
[3.12] gh-112953: Update news to finish 3.13 as main (GH-129877) (#129879)

Entry for patch to 3.13.rc3
(cherry picked from commit f72977b2f4a29063ae3019e50360f4af869f4149)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
9 months ago[3.12] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129869)
Miss Islington (bot) [Sat, 8 Feb 2025 20:13:40 +0000 (21:13 +0100)] 
[3.12] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129869)

gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866)

mention AF_INET6 and IPv6 in socketserver docs.
(cherry picked from commit 5ce70ad129d2e34a09f8ae6ee0542f4f996fb8ec)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
9 months ago[3.12] gh-129699: Add description to IDLE doc title (GH-129727) (#129865)
Miss Islington (bot) [Sat, 8 Feb 2025 19:42:43 +0000 (20:42 +0100)] 
[3.12] gh-129699: Add description to IDLE doc title (GH-129727) (#129865)

gh-129699: Add description to IDLE doc title (GH-129727)

Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------

(cherry picked from commit 33a7094aa680bca66582fec4dcda7d150eb90cd8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
9 months ago[3.12] Add multinomial to the itertools recipes docs (gh-129760) (gh-129854)
Bénédikt Tran [Sat, 8 Feb 2025 14:10:41 +0000 (15:10 +0100)] 
[3.12] Add multinomial to the itertools recipes docs (gh-129760) (gh-129854)

9 months ago[3.12] gh-112020: Rework socketserver examples to be correct (GH-129741) (#129744)
Miss Islington (bot) [Thu, 6 Feb 2025 17:53:30 +0000 (18:53 +0100)] 
[3.12] gh-112020: Rework socketserver examples to be correct (GH-129741) (#129744)

gh-112020: Rework socketserver examples to be correct.

Outdated code updated, the BaseRequestHandler example is now much more
illustrative instead of the bad idea of a single recv() call for TCP.

tested, they now work.
(cherry picked from commit 78377c788e02e91bf43d290d69317198a2e563fd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
9 months ago[3.12] Remove an inaccurate note from `socket.recv` (GH-129733) (#129735)
Miss Islington (bot) [Thu, 6 Feb 2025 17:45:33 +0000 (18:45 +0100)] 
[3.12] Remove an inaccurate note from `socket.recv` (GH-129733) (#129735)

Remove an inaccurate note from `socket.recv` (GH-129733)

Remove an inaccurate note from socket.recv.
(cherry picked from commit ded54c3baa57f6727be809f13633b393241c164a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
9 months ago[3.12] GH-121970: Extract ``implementation_detail`` into a new extension (GH-129663...
Adam Turner [Thu, 6 Feb 2025 17:33:13 +0000 (17:33 +0000)] 
[3.12] GH-121970: Extract ``implementation_detail`` into a new extension (GH-129663) (#129740)

(cherry picked from commit 4d56c40440c9fd4499d61d24977336d8cd8d8d83)

9 months ago[3.12] Merge TSAN test matrices in CI (#123278) (#129674)
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Thu, 6 Feb 2025 16:46:00 +0000 (17:46 +0100)] 
[3.12] Merge TSAN test matrices in CI (#123278) (#129674)

9 months ago[3.12] gh-86206: Change IDLE splash line (GH-129698) (#129718)
Miss Islington (bot) [Thu, 6 Feb 2025 08:20:31 +0000 (09:20 +0100)] 
[3.12] gh-86206: Change IDLE splash line (GH-129698) (#129718)

Replace references to boilerplate files available in About IDLE and instead suggest clicking Help menu.

(cherry picked from commit d83a8a26f5e321b26bec59f5fd47c9c46c16ab12)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
9 months ago[3.12] gh-69001: Replace maintainer email in IDLE credits (GH-129588) (#129714)
Miss Islington (bot) [Thu, 6 Feb 2025 07:03:21 +0000 (08:03 +0100)] 
[3.12] gh-69001: Replace maintainer email in IDLE credits (GH-129588) (#129714)

Instead, anyone requesting credit should submit a PR with contribution summary.
(Also fix typo in existing name.)
(cherry picked from commit 76e018294801ab95f30756c702b63bf6b4c23310)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
9 months ago[3.12] gh-129660: Do not use test_embed in PGO profile builds (GH-129662) (#129685)
Miss Islington (bot) [Wed, 5 Feb 2025 11:39:58 +0000 (12:39 +0100)] 
[3.12] gh-129660: Do not use test_embed in PGO profile builds (GH-129662) (#129685)

[3.13] gh-129660: Do not use test_embed in PGO profile builds (GH-129662)
(cherry picked from commit 19ceb342b5cc9d9da51dfb6d11dab078c3d43ff1)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
9 months agoMerge branch '3.12' of https://github.com/python/cpython into 3.12
Thomas Wouters [Tue, 4 Feb 2025 19:39:37 +0000 (20:39 +0100)] 
Merge branch '3.12' of https://github.com/python/cpython into 3.12

9 months agoPost 3.12.9
Thomas Wouters [Tue, 4 Feb 2025 19:37:20 +0000 (20:37 +0100)] 
Post 3.12.9

9 months ago[3.12] gh-128772: Fix pydoc for methods with __module__ is None (GH-129177) (GH-129654)
Miss Islington (bot) [Tue, 4 Feb 2025 14:44:02 +0000 (15:44 +0100)] 
[3.12] gh-128772: Fix pydoc for methods with __module__ is None (GH-129177) (GH-129654)

(cherry picked from commit 979d76620990e6f8d68fa63e0ae0db1ec5b4d14c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
9 months ago[3.12] gh-129350: Make tests for glob with trailing slash more strict (GH-129376...
Miss Islington (bot) [Tue, 4 Feb 2025 14:42:14 +0000 (15:42 +0100)] 
[3.12] gh-129350: Make tests for glob with trailing slash more strict (GH-129376) (GH-129652)

Test that the trailing pathname separator is preserved.

Multiple trailing pathname separators are only preserved if the pattern
does not contain metacharacters, otherwise only one trailing pathname
separator is preserved. This is rather an implementation detail.
(cherry picked from commit 8b5c8508c7f5d98b09792e159ef2396c73da68cd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
9 months agoPython 3.12.9 v3.12.9
Thomas Wouters [Tue, 4 Feb 2025 14:37:05 +0000 (15:37 +0100)] 
Python 3.12.9

9 months ago[3.12] Use roles :data: and :const: for referencing module variables (GH-129507)...
Serhiy Storchaka [Tue, 4 Feb 2025 14:30:57 +0000 (16:30 +0200)] 
[3.12] Use roles :data: and :const: for referencing module variables (GH-129507) (GH-129650)

(cherry picked from commit 078ab828b9a21ed0e683941bd141d5017b5f62d9)

9 months ago[3.12] gh-129502: Fix handling errors in ctypes callbacks (GH-129504) (#129639)
Serhiy Storchaka [Tue, 4 Feb 2025 14:04:46 +0000 (16:04 +0200)] 
[3.12] gh-129502: Fix handling errors in ctypes callbacks (GH-129504) (#129639)

Unlikely errors in preparing arguments for ctypes callback are now
handled in the same way as errors raised in the callback of in converting
the result of the callback -- using sys.unraisablehook() instead of
sys.excepthook() and not setting sys.last_exc and other variables.
(cherry picked from commit 9d63ae5fe52d95059ab1bcd4cbb1f9e17033c897)

9 months ago[3.12] gh-97850: Remove the mention of removal from `ResourceReader` docs (GH-128602...
Miss Islington (bot) [Mon, 3 Feb 2025 23:29:45 +0000 (00:29 +0100)] 
[3.12] gh-97850: Remove the mention of removal from `ResourceReader` docs (GH-128602) (#128655)

gh-97850: Remove the mention of removal from `ResourceReader` docs (GH-128602)

Remove the mention of removal from ResourceReader docs
(cherry picked from commit a1284e97979ff73ad72ad06c796b904137950576)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
9 months ago[3.12] gh-128696: Add arm64 to the get_platform return val description (GH-128701...
Miss Islington (bot) [Mon, 3 Feb 2025 23:29:16 +0000 (00:29 +0100)] 
[3.12] gh-128696: Add arm64 to the get_platform return val description (GH-128701) (#128773)

gh-128696: Add arm64 to the get_platform return val description (GH-128701)
(cherry picked from commit 553cdc6d6856c1b4539a45eb90d0769f7c629355)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
9 months ago[3.12] gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue...
Miss Islington (bot) [Mon, 3 Feb 2025 23:28:14 +0000 (00:28 +0100)] 
[3.12] gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` (GH-128287) (#128790)

gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` (GH-128287)
(cherry picked from commit 402b91da87052878b4e7e8946ba91bdf4ee4bebe)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
9 months ago[3.12] gh-129345: null check for indent syslogmodule (GH-129348) (#129443)
Miss Islington (bot) [Mon, 3 Feb 2025 23:24:56 +0000 (00:24 +0100)] 
[3.12] gh-129345: null check for indent syslogmodule (GH-129348) (#129443)

gh-129345: null check for indent syslogmodule (GH-129348)
(cherry picked from commit 25cf79a0829422bd8479ca0c13c72b769422077b)

Co-authored-by: Burkov Egor <xwooffie@gmail.com>
9 months ago[3.12] gh-101944: Clarify PyModule_AddObjectRef() documentation (GH-129433) (#129613)
Miss Islington (bot) [Mon, 3 Feb 2025 12:02:31 +0000 (13:02 +0100)] 
[3.12] gh-101944: Clarify PyModule_AddObjectRef() documentation (GH-129433) (#129613)

gh-101944: Clarify PyModule_AddObjectRef() documentation (GH-129433)
(cherry picked from commit 04264a286e5ddfe8ac7423f7376ca34a2ca8b7ba)

Co-authored-by: Victor Stinner <vstinner@python.org>
9 months ago[3.12] gh-129539: Include sysexits.h before checking EX_OK (#129590) (#129609)
Victor Stinner [Mon, 3 Feb 2025 12:00:10 +0000 (13:00 +0100)] 
[3.12] gh-129539: Include sysexits.h before checking EX_OK (#129590) (#129609)

[3.13] gh-129539: Include sysexits.h before checking EX_OK (#129590)

Previously, the macro would be redefined when the header was included.

(cherry picked from commit 65f3432ac32f92bc3d8b7b11103a56c5a70049c0)

Co-authored-by: Collin Funk <collin.funk1@gmail.com>
9 months ago[3.12] gh-129407: Clarify that a `SystemError` isn't always CPython's fault (GH-12941...
Miss Islington (bot) [Mon, 3 Feb 2025 11:54:16 +0000 (12:54 +0100)] 
[3.12] gh-129407: Clarify that a `SystemError` isn't always CPython's fault (GH-129410) (#129611)

gh-129407: Clarify that a `SystemError` isn't always CPython's fault (GH-129410)
(cherry picked from commit 39b754a35976924f6df46cd475e889bcf8598ca1)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
9 months ago[3.12] gh-127975: Avoid reusing quote types in ast.unparse if not needed (GH-127980...
Miss Islington (bot) [Sun, 2 Feb 2025 22:58:22 +0000 (23:58 +0100)] 
[3.12] gh-127975: Avoid reusing quote types in ast.unparse if not needed (GH-127980) (#129601)

gh-127975: Avoid reusing quote types in ast.unparse if not needed (GH-127980)
(cherry picked from commit 8df5193d37f70a1478642c4b456dcc7d6df6c117)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
9 months ago[3.12] GH-121970: Extract ``misc_news`` into a new extension (GH-129577) (#129587)
Adam Turner [Sun, 2 Feb 2025 16:26:50 +0000 (16:26 +0000)] 
[3.12] GH-121970: Extract ``misc_news`` into a new extension (GH-129577) (#129587)

(cherry picked from commit ae4788809d674f8e27faef2678953be8cf67d4a3)

9 months ago[3.12] gh-126609: Allow translating the ``availability`` directive (GH-129549) (...
Miss Islington (bot) [Sun, 2 Feb 2025 16:18:50 +0000 (17:18 +0100)] 
[3.12] gh-126609: Allow translating the ``availability`` directive (GH-129549) (#129585)

gh-126609: Allow translating the ``availability`` directive (GH-129549)
(cherry picked from commit 0612a89ffcf0bb52b1750a3466671ba8daad1d87)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
9 months ago[3.12] gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH...
Miss Islington (bot) [Sun, 2 Feb 2025 15:47:37 +0000 (16:47 +0100)] 
[3.12] gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH-128037) (#129582)

gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH-128037)

(cherry picked from commit 4e38eeafe2ff3bfc686514731d6281fed34a435e)

Co-authored-by: Vojtěch Boček <vbocek@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
9 months ago[3.12] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed...
Miss Islington (bot) [Sun, 2 Feb 2025 08:30:28 +0000 (09:30 +0100)] 
[3.12] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418) (GH-129527)

gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418)

* gh-105704: Disallow square brackets ( and ) in domain names for parsed URLs

* Use Sphinx references

* Add mismatched bracket test cases, fix news format

* Add more test coverage for ports

---------

(cherry picked from commit d89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
9 months ago[3.12] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465...
Miss Islington (bot) [Sun, 2 Feb 2025 05:04:45 +0000 (06:04 +0100)] 
[3.12] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561) (#129565)

gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561)

Restore the skipUnless removed by GH-119465.

This test can only pass on virtual machines, not actual machines.

actual machines see:

```
    self.cli.connect((cid, VSOCKPORT))
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: [Errno 19] No such device
```

Reproduced on (Linux) Ubuntu 24.04.1 running 6.8.0-52-generic.
(cherry picked from commit e1006ce1ded1b18972888ef057718dba6f2c7edd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
9 months ago[3.12] gh-126022: Replace TeX quotation marks with ``"`` in Doc/license.rst (GH...
Hugo van Kemenade [Sat, 1 Feb 2025 17:16:38 +0000 (19:16 +0200)] 
[3.12] gh-126022: Replace TeX quotation marks with ``"`` in  Doc/license.rst (GH-129535) (#129554)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
9 months ago[3.12] gh-126108: Fix potential null pointer dereference in `PySys_AddWarnOptionUnico...
Miss Islington (bot) [Fri, 31 Jan 2025 15:02:30 +0000 (16:02 +0100)] 
[3.12] gh-126108: Fix potential null pointer dereference in `PySys_AddWarnOptionUnicode` (GH-126118) (#129522)

gh-126108: Fix potential null pointer dereference in `PySys_AddWarnOptionUnicode` (GH-126118)
(cherry picked from commit fad36bf38248130bc48b81a5e7c31a7649a6456e)

Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
9 months ago[3.12] gh-111495: Add PyFile tests (#129449) (#129477) (#129501)
Victor Stinner [Fri, 31 Jan 2025 09:27:35 +0000 (10:27 +0100)] 
[3.12] gh-111495: Add PyFile tests (#129449) (#129477) (#129501)

[3.13] gh-111495: Add PyFile tests (#129449) (#129477)

gh-111495: Add PyFile tests (#129449)

Add tests for the following functions in test_capi.test_file:

* PyFile_FromFd()
* PyFile_GetLine()
* PyFile_NewStdPrinter()
* PyFile_WriteObject()
* PyFile_WriteString()
* PyObject_AsFileDescriptor()

Remove test_embed.StdPrinterTests which became redundant.

(cherry picked from commit 4ca9fc08f89bf7172d41e523d9e520eb1729ee8c)
(cherry picked from commit 9a59a51733e58b6091ca9157fd43cc9d0f93a96f)

9 months ago[3.12] gh-128799: Add frame of except* to traceback when wrapping a naked exception...
Irit Katriel [Thu, 30 Jan 2025 12:02:46 +0000 (12:02 +0000)] 
[3.12] gh-128799: Add frame of except* to traceback when wrapping a naked exception (GH-128971) (#129328)

9 months ago[3.12] remove type annotations from multiprocessing. (GH-129381) (#129471)
Miss Islington (bot) [Thu, 30 Jan 2025 09:08:31 +0000 (10:08 +0100)] 
[3.12] remove type annotations from multiprocessing. (GH-129381) (#129471)

remove type annotations from multiprocessing. (GH-129381)

* remove type annotations from multiprocessing.

One of them was technically invalid per typing specs... but since we're not
checking these in the stdlib today lets elide them.

https://discuss.python.org/t/static-type-annotations-in-cpython/65068/13

* use the actual comment style annotation format

---------
(cherry picked from commit 71aecc284efdf997939568a4167dbffe1a65b9bf)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
9 months ago[3.12] gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barri...
Miss Islington (bot) [Thu, 30 Jan 2025 08:28:06 +0000 (09:28 +0100)] 
[3.12] gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (GH-129419) (#129469)

gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (GH-129419)
(cherry picked from commit bcb25d60b1baf9348e73cbd2359342cea6009c36)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
9 months ago[3.12] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129456)
Miss Islington (bot) [Wed, 29 Jan 2025 21:16:47 +0000 (22:16 +0100)] 
[3.12] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129456)

gh-125522: Fix bare except in `test_uuid` (GH-129018)
(cherry picked from commit a1a4e9f39ad86359e148fd193089b3b2a354f71d)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
9 months ago[3.12] gh-118761: Improve import time of `subprocess` (GH-129427) (#129448)
Miss Islington (bot) [Wed, 29 Jan 2025 16:48:48 +0000 (17:48 +0100)] 
[3.12] gh-118761: Improve import time of `subprocess` (GH-129427) (#129448)

gh-118761: Improve import time of `subprocess` (GH-129427)

* subprocess: lazy import signal and locale to improve module import time
(cherry picked from commit 49f24650e4541456872490ec2b59d6d186204891)

Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
9 months ago[3.12]: CI: Change job name to 'build arm64' on Windows (#129434) (#129444)
Hugo van Kemenade [Wed, 29 Jan 2025 14:47:50 +0000 (16:47 +0200)] 
[3.12]: CI: Change job name to 'build arm64' on Windows (#129434) (#129444)

CI: Change job name to 'build arm64' on Windows (#129434)

(cherry picked from commit c67afb581eccb3ce20a4965c8f407fd2662b6bdf)

9 months ago[3.12] gh-129409: Fix Integer overflow - SEGV while writing data more than 2GB in...
Miss Islington (bot) [Wed, 29 Jan 2025 11:32:54 +0000 (12:32 +0100)] 
[3.12] gh-129409: Fix Integer overflow -  SEGV while writing data more than 2GB in CSV file (GH-129413) (#129437)

gh-129409: Fix Integer overflow -  SEGV while writing data more than 2GB in CSV file (GH-129413)
(cherry picked from commit 97b0ef05d987ebef354512b516a246feb411e815)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
9 months ago[3.12] gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse...
Miss Islington (bot) [Tue, 28 Jan 2025 11:54:27 +0000 (12:54 +0100)] 
[3.12] gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270) (#129396)

gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270)

The parameter `amt` of `HTTPResponse.read()`, which could be a negative integer,
has not been handled before and led to waiting for the connection to close
for `keep-alive connections`. Now, this has been fixed, and passing negative values
to `HTTPResponse().read()` works the same as passing `None` value.
(cherry picked from commit 4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317)

Co-authored-by: Yury Manushkin <manushkin@gmail.com>
9 months ago[3.12] gh-85046: Document errno constants (GH-126420) (#129384)
Miss Islington (bot) [Tue, 28 Jan 2025 00:20:13 +0000 (01:20 +0100)] 
[3.12] gh-85046: Document errno constants (GH-126420) (#129384)

(cherry picked from commit 1c3bb200da77f9df30af4717988dad17db086d1a)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
9 months ago[3.12] gh-119511: Fix a potential denial of service in imaplib (GH-119514) (GH-129356)
Miss Islington (bot) [Mon, 27 Jan 2025 22:06:14 +0000 (23:06 +0100)] 
[3.12] gh-119511: Fix a potential denial of service in imaplib (GH-119514) (GH-129356)

gh-119511: Fix a potential denial of service in imaplib (GH-119514)

The IMAP4 client could consume an arbitrary amount of memory when trying
to connect to a malicious server, because it read a "literal" data with a
single read(size) call, and BufferedReader.read() allocates the bytes
object of the specified size before reading. Now the IMAP4 client reads data
by chunks, therefore the amount of used memory is limited by the
amount of the data actually been sent by the server.
(cherry picked from commit 735f25c5e3a0f74438c86468ec4dfbe219d93c91)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
9 months ago[3.12] gh-129346: Handle allocation errors for SQLite aggregate context (GH-129347...
Miss Islington (bot) [Mon, 27 Jan 2025 17:33:18 +0000 (18:33 +0100)] 
[3.12] gh-129346: Handle allocation errors for SQLite aggregate context (GH-129347) (#129373)

(cherry picked from commit 379ab856f59423c570333403a7d5d72f3ea82d52)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
9 months ago[3.12] gh-126022: Remove zope.org from the permitted linkcheck redirects (GH-129308...
Miss Islington (bot) [Sun, 26 Jan 2025 14:53:46 +0000 (15:53 +0100)] 
[3.12] gh-126022: Remove zope.org from the permitted linkcheck redirects (GH-129308) (#129318)

Co-authored-by: partev <petrosyan@gmail.com>
9 months ago[3.12] gh-71339: Use new assertion methods in test_idle (GH-129314) (#129315)
Miss Islington (bot) [Sun, 26 Jan 2025 10:33:44 +0000 (11:33 +0100)] 
[3.12] gh-71339: Use new assertion methods in test_idle (GH-129314) (#129315)

Revise 10 tests in 7 files, with 1 test split into 2.
(cherry picked from commit 1499f66c4c63d68a7ff4fa15fd3f253921f701aa)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
9 months ago[3.12] GH-121970: Remove pyspecific ``PyDecoratorMixin`` patches (GH-129306) (#129310)
Adam Turner [Sun, 26 Jan 2025 03:54:26 +0000 (03:54 +0000)] 
[3.12] GH-121970: Remove pyspecific ``PyDecoratorMixin`` patches (GH-129306) (#129310)

(cherry picked from commit 0ef8d470b79889de065e94cecd0ee01e45037d3a)

9 months ago[3.12] gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoin...
Miss Islington (bot) [Sat, 25 Jan 2025 20:12:19 +0000 (21:12 +0100)] 
[3.12] gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint (GH-124454) (#125549)

* gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint (GH-124454)
(cherry picked from commit 12eaadc0ad33411bb02945d700b6ed7e758bb188)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
9 months ago[3.12] gh-126022: make license.rst consistent with LICENSE (GH-128516) (#129291)
Hugo van Kemenade [Sat, 25 Jan 2025 13:37:20 +0000 (15:37 +0200)] 
[3.12] gh-126022: make license.rst consistent with LICENSE (GH-128516) (#129291)

Co-authored-by: partev <petrosyan@gmail.com>
9 months ago[3.12] GH-125722: Remove Sphinx patches (GH-129277) (#129279)
Miss Islington (bot) [Sat, 25 Jan 2025 03:57:35 +0000 (04:57 +0100)] 
[3.12] GH-125722: Remove Sphinx patches (GH-129277) (#129279)

GH-125722: Remove Sphinx patches (GH-129277)
(cherry picked from commit d40692db06cdae89447c26b6c1b5d2a682c0974f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
9 months ago[3.12] gh-128479: fix asyncio staggered race leaking tasks, and logging unhandled...
Miss Islington (bot) [Thu, 23 Jan 2025 21:16:21 +0000 (22:16 +0100)] 
[3.12] gh-128479: fix asyncio staggered race leaking tasks, and logging unhandled exception.append exception (GH-128475) (#129228)

gh-128479: fix asyncio staggered race leaking tasks, and logging unhandled exception.append exception (GH-128475)
(cherry picked from commit ec91e1c2762412f1408b0dfb5d281873b852affe)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
9 months ago[3.12] gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) (#129217)...
Victor Stinner [Thu, 23 Jan 2025 13:29:46 +0000 (14:29 +0100)] 
[3.12] gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) (#129217) (#129221)

[3.13] gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) (#129217)

gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191)

Support calling PyTraceMalloc_Track() and PyTraceMalloc_Untrack()
during late Python finalization.

* Call _PyTraceMalloc_Fini() later in Python finalization.
* Test also PyTraceMalloc_Untrack() without the GIL
* PyTraceMalloc_Untrack() now gets the GIL.
* Test also PyTraceMalloc_Untrack() in test_tracemalloc_track_race().

(cherry picked from commit 46c7e13c055c218e18b0424efc60965e6a5fe6ea)
(cherry picked from commit e3b3e01d6a6f43c15890d14f139f38155601643a)

9 months ago[3.12] Add colour to GitHub Actions output (GH-129196) (#129199)
Hugo van Kemenade [Wed, 22 Jan 2025 21:50:35 +0000 (23:50 +0200)] 
[3.12] Add colour to GitHub Actions output (GH-129196) (#129199)

9 months ago[3.12] gh-124363: Treat debug expressions in f-string as raw strings (GH-128399)...
Pablo Galindo Salgado [Wed, 22 Jan 2025 18:08:58 +0000 (18:08 +0000)] 
[3.12] gh-124363: Treat debug expressions in f-string as raw strings (GH-128399) (#129190)

(cherry picked from commit 60a3a0dd6fe140fdc87f6e769ee5bb17d92efe4e)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
9 months ago[3.12] gh-129093: Fix f-string debug text sometimes getting cut off when expression...
Pablo Galindo Salgado [Wed, 22 Jan 2025 00:47:20 +0000 (00:47 +0000)] 
[3.12] gh-129093: Fix f-string debug text sometimes getting cut off when expression contains ! (#129164)

9 months ago[3.12] gh-129044: Update glossary entry for 'loader' to reflect current import system...
nikalinov [Tue, 21 Jan 2025 23:49:49 +0000 (23:49 +0000)] 
[3.12] gh-129044: Update glossary entry for 'loader' to reflect current import system (#129073) (#129130)

* gh-129044: Update glossary entry for 'loader' to reflect current import system (#129073)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit e1fa2fcc7c1bf5291a7f71300b7828b49be9ab72)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
9 months ago[3.12] gh-122845: fix parameter_list_starargs in function definition pseudo-grammar...
Miss Islington (bot) [Tue, 21 Jan 2025 20:12:46 +0000 (21:12 +0100)] 
[3.12] gh-122845: fix parameter_list_starargs in function definition pseudo-grammar (GH-122847) (#129151)

gh-122845: fix parameter_list_starargs in function definition pseudo-grammar (GH-122847)

Thanks to Artur Chakhvadze for bugfix.
(cherry picked from commit 610584639003317193cdcfe38bbdc8268b612828)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
9 months ago[3.12] Docs: fix typo in `Doc/howto/mro.rst` (GH-129095) (GH-129121)
Miss Islington (bot) [Tue, 21 Jan 2025 09:40:38 +0000 (10:40 +0100)] 
[3.12] Docs: fix typo in `Doc/howto/mro.rst` (GH-129095) (GH-129121)

(cherry picked from commit da310d209a6af45e5e1ea48a873f1d14be471a09)

Co-authored-by: smelnikov <13030121+smelnikov@users.noreply.github.com>
9 months ago[3.12] gh-128588: fix refcycles in eager task creation and remove eager tasks optimiz...
Thomas Grainger [Tue, 21 Jan 2025 05:41:39 +0000 (05:41 +0000)] 
[3.12] gh-128588: fix refcycles in eager task creation and remove eager tasks optimization that missed and introduced incorrect cancellations (#129063) (#128586)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
9 months ago[3.12] GH-121970: Extract ``changes`` into a new extension (GH-129105) (#129110)
Miss Islington (bot) [Mon, 20 Jan 2025 23:59:59 +0000 (00:59 +0100)] 
[3.12] GH-121970: Extract ``changes`` into a new extension (GH-129105) (#129110)

GH-121970: Extract ``changes`` into a new extension (GH-129105)
(cherry picked from commit e54ac3b69edacf4149988150591226df1397d127)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
9 months ago[3.12] gh-111178: fix UBSan failures in `Modules/_multiprocessing/semaphore.c` (GH...
Miss Islington (bot) [Mon, 20 Jan 2025 21:00:09 +0000 (22:00 +0100)] 
[3.12] gh-111178: fix UBSan failures in `Modules/_multiprocessing/semaphore.c` (GH-129084) (#129101)

gh-111178: fix UBSan failures in `Modules/_multiprocessing/semaphore.c` (GH-129084)

fix UBSan failures for `SemLockObject`
(cherry picked from commit 5ed5572cac7ef204767ddf8e8888e15672ba558e)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
9 months ago[3.12] GH-128131: Completely support random read access of uncompressed unencrypted...
Miss Islington (bot) [Mon, 20 Jan 2025 20:40:28 +0000 (21:40 +0100)] 
[3.12] GH-128131: Completely support random read access of uncompressed unencrypted files in ZipFile (GH-128143) (#129092)

GH-128131: Completely support random read access of uncompressed unencrypted files in ZipFile (GH-128143)
(cherry picked from commit dda02eb7be62bf0af850a7521c77c90ea997df6c)

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
9 months ago[3.12] doc: fix venv creating for the local Python using uv (GH-129094) (#129097)
Miss Islington (bot) [Mon, 20 Jan 2025 19:13:23 +0000 (20:13 +0100)] 
[3.12] doc: fix venv creating for the local Python using uv (GH-129094) (#129097)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
9 months ago[3.12] Docs C API: Clarify what happens when null bytes are passed to `PyUnicode_AsUT...
Miss Islington (bot) [Mon, 20 Jan 2025 16:06:18 +0000 (17:06 +0100)] 
[3.12] Docs C API: Clarify what happens when null bytes are passed to `PyUnicode_AsUTF8` (GH-127458) (#129081)

Docs C API: Clarify what happens when null bytes are passed to `PyUnicode_AsUTF8` (GH-127458)
(cherry picked from commit e792f4bc2e712bb6e2143599d2b88dd339de83e6)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan U. <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.12] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH...
Serhiy Storchaka [Mon, 20 Jan 2025 12:06:02 +0000 (14:06 +0200)] 
[3.12] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH-128815) (GH-129059)

Add a mix-in class ExtraAssertions containing the following methods:

* assertHasAttr() and assertNotHasAttr()
* assertIsSubclass() and assertNotIsSubclass()
* assertStartsWith() and assertNotStartsWith()
* assertEndsWith() and assertNotEndsWith()

(cherry picked from commit c6a566e47b9903d48e6e1e78a1af20e6c6c535cf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 06cad77a5b345adde88609be9c3c470c5cd9f417)

10 months ago[3.12] Fix a typo in `syslog`'s error message (GH-129029) (#129050)
Miss Islington (bot) [Mon, 20 Jan 2025 10:28:55 +0000 (11:28 +0100)] 
[3.12] Fix a typo in `syslog`'s error message (GH-129029) (#129050)

Fix a typo in `syslog`'s error message (GH-129029)
(cherry picked from commit 9b1c1817af30e609b7cbfacbe5b1e73e21dc9e37)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.12] GH-125722: Use long options for Sphinx (GH-129039) (#129042)
Miss Islington (bot) [Mon, 20 Jan 2025 07:17:35 +0000 (08:17 +0100)] 
[3.12] GH-125722: Use long options for Sphinx (GH-129039) (#129042)

GH-125722: Use long options for Sphinx (GH-129039)
(cherry picked from commit 4967fa6a9c0db7ea3ade905d724a04688cfc7a5e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
10 months ago[3.12] GH-125722: Increase minimum supported Sphinx to 8.1.3 (GH-128922) (#129038)
Miss Islington (bot) [Mon, 20 Jan 2025 00:46:05 +0000 (01:46 +0100)] 
[3.12] GH-125722: Increase minimum supported Sphinx to 8.1.3 (GH-128922) (#129038)

(cherry picked from commit d46b577ec026c2e700a9f920f81cfbf698e53eb6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
10 months ago[3.12] gh-129020: Remove ambiguous sentence from `tokenize.untokenize` docs (GH-12902...
Miss Islington (bot) [Mon, 20 Jan 2025 00:12:39 +0000 (01:12 +0100)] 
[3.12] gh-129020: Remove ambiguous sentence from `tokenize.untokenize` docs (GH-129021) (#129036)

gh-129020: Remove ambiguous sentence from `tokenize.untokenize` docs (GH-129021)
(cherry picked from commit bca35f0e782848ae2acdcfbfb000cd4a2af49fbd)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.12] gh-80222: Fix email address header folding with long quoted-string (GH-122753...
Miss Islington (bot) [Sun, 19 Jan 2025 21:07:39 +0000 (22:07 +0100)] 
[3.12] gh-80222: Fix email address header folding with long quoted-string (GH-122753) (#129008)

gh-80222: Fix email address header folding with long quoted-string (GH-122753)

Email generators using email.policy.default could incorrectly omit the
quote ('"') characters from a quoted-string during header refolding,
leading to invalid address headers and enabling header spoofing. This
change restores the quote characters on a bare-quoted-string as the
header is refolded, and escapes backslash and quote chars in the string.
(cherry picked from commit 5aaf41685834901e4ed0a40f4c055b92991a0bb5)

Co-authored-by: Mike Edmunds <medmunds@gmail.com>
10 months ago[3.12] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) (#129023)
Victor Stinner [Sun, 19 Jan 2025 13:51:53 +0000 (14:51 +0100)] 
[3.12] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) (#129023)

* Add Lib/test/test_capi/test_eval.py
* Add Modules/_testlimitedcapi/eval.c

(cherry picked from commit bf8b3746398ea756c97e3cf263d63ca3ce3a544e)

* gh-111495: Fix refleaks in test_capi.test_eval tests (#122851)

(cherry picked from commit b4a316087c32d83e375087fd35fc511bc430ee8b)
(cherry picked from commit 430ccbc009aa7a2da92b85d7aeadd39e1666e875)

10 months ago[3.12] gh-128679: Fix tracemalloc.stop() race conditions (#128897) (#129022)
Victor Stinner [Sun, 19 Jan 2025 13:24:14 +0000 (14:24 +0100)] 
[3.12] gh-128679: Fix tracemalloc.stop() race conditions (#128897) (#129022)

[3.13] gh-128679: Fix tracemalloc.stop() race conditions (#128897)

tracemalloc_alloc(), tracemalloc_realloc(), PyTraceMalloc_Track(),
PyTraceMalloc_Untrack() and _PyTraceMalloc_TraceRef() now check
tracemalloc_config.tracing after calling TABLES_LOCK().

_PyTraceMalloc_Stop() now protects more code with TABLES_LOCK(),
especially setting tracemalloc_config.tracing to 1.

Add a test using PyTraceMalloc_Track() to test tracemalloc.stop()
race condition.

Call _PyTraceMalloc_Init() at Python startup.

(cherry picked from commit 6b47499510e47c0401d1f6cca2660fc12c496e39)

10 months ago[3.12] gh-128911: Add tests on the PyImport C API (GH-128915) (GH-128960) (#128989)
Serhiy Storchaka [Sun, 19 Jan 2025 13:21:55 +0000 (15:21 +0200)] 
[3.12] gh-128911: Add tests on the PyImport C API (GH-128915) (GH-128960) (#128989)

* Add Modules/_testlimitedcapi/import.c
* Add Lib/test/test_capi/test_import.py
* Remove _testcapi.check_pyimport_addmodule(): tests already covered
  by newly added tests.
(cherry picked from commit 34ded1a1a10204635cad27830fcbee2f8547e8ed)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit d95ba9fa1110534b7247fa2ff12b90e930c93256)

10 months ago[3.12] gh-128991: Release the enter frame reference within bdb callba… (#129003)
Tian Gao [Sat, 18 Jan 2025 22:21:34 +0000 (17:21 -0500)] 
[3.12] gh-128991: Release the enter frame reference within bdb callba… (#129003)

[3.12] gh-128991: Release the enter frame reference within bdb callback (GH-128992)

* Release the enter frame reference within bdb callback

* 📜🤖 Added by blurb_it.

---------

(cherry picked from commit 61b35f74aa4a6ac606635e245147ff3658628d99)

10 months ago[3.12] gh-128998: Fix indentation of numbered list and literal block (GH-128999)...
Miss Islington (bot) [Sat, 18 Jan 2025 21:00:14 +0000 (22:00 +0100)] 
[3.12] gh-128998: Fix indentation of numbered list and literal block (GH-128999) (#129001)

gh-128998: Fix indentation of numbered list and literal block (GH-128999)
(cherry picked from commit e8092e5cdcd6707ac0b16d8fb37fa080a88bcc97)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
10 months ago[3.12] Pre-commit: Drop specific language version and bump hooks (GH-128801) (#128997)
Peter Bierma [Sat, 18 Jan 2025 20:52:24 +0000 (15:52 -0500)] 
[3.12] Pre-commit: Drop specific language version and bump hooks (GH-128801) (#128997)

10 months ago[3.12] gh-121542: Document trailing newline behavior in `set_content()` (GH-121543...
Miss Islington (bot) [Sat, 18 Jan 2025 18:41:59 +0000 (19:41 +0100)] 
[3.12] gh-121542: Document trailing newline behavior in `set_content()` (GH-121543) (#128996)

gh-121542: Document trailing newline behavior in `set_content()` (GH-121543)
(cherry picked from commit fba475ae6f932d0aaee6832b4102b2d4c50df70f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Yizheng Meng <dev@rapidcow.org>
10 months ago[3.12] gh-127599: Fix _Py_RefcntAdd missing calls to _Py_INCREF_STAT_INC/_Py_INCREF_I...
Ed Nutting [Sat, 18 Jan 2025 17:00:18 +0000 (17:00 +0000)] 
[3.12] gh-127599: Fix _Py_RefcntAdd missing calls to _Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (GH-127717) (#128712)

Previously, `_Py_RefcntAdd` hasn't called
`_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect.

Now it has been fixed.
(cherry picked from commit ab05beb8cea62636bd86f6f7cf1a82d7efca7162)

10 months ago[3.12] gh-125997: suggest efficient alternatives for `time.sleep(0)` (GH-128752)...
Bénédikt Tran [Sat, 18 Jan 2025 11:13:03 +0000 (12:13 +0100)] 
[3.12] gh-125997: suggest efficient alternatives for `time.sleep(0)` (GH-128752) (#128985)

10 months ago[3.12] gh-127637: add tests for `dis` command-line interface (#127759) (#127780)
Bénédikt Tran [Sat, 18 Jan 2025 11:01:56 +0000 (12:01 +0100)] 
[3.12] gh-127637: add tests for `dis` command-line interface (#127759) (#127780)

10 months ago[3.12] gh-128961: Fix exhausted array iterator crash in __setstate__() (GH-128962...
Miss Islington (bot) [Sat, 18 Jan 2025 10:14:07 +0000 (11:14 +0100)] 
[3.12] gh-128961: Fix exhausted array iterator crash in __setstate__() (GH-128962) (#128977)

(cherry picked from commit 4dade055f4e18a7e91bc70293abb4db745ad16ca)

Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
10 months ago[3.12] gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933...
Miss Islington (bot) [Sat, 18 Jan 2025 01:06:45 +0000 (02:06 +0100)] 
[3.12] gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933) (#128970)

gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933)

* gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets

Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other
than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address
families, and the call with fail with Linux kernel 6.12.9 and newer.

* Apply suggestions from code review

---------
(cherry picked from commit 3829104ab412a47bf3f36b8c133c886d2cc9a6d4)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
10 months ago[3.12] Fix definition of a `generator iterator` in `glossary.rst` (GH-128952) (#128968)
Miss Islington (bot) [Sat, 18 Jan 2025 00:53:29 +0000 (01:53 +0100)] 
[3.12] Fix definition of a `generator iterator` in `glossary.rst` (GH-128952) (#128968)

Fix definition of a `generator iterator` in `glossary.rst` (GH-128952)

Fix possible typo/grammar in glossary.rst

As discussed in https://discuss.python.org/t/typo-in-glossary-entry-for-generator-iterator/77163
(cherry picked from commit 8174770d311ba09c07a47cc3ae90a1db2e7d7708)

Co-authored-by: Daniel F Moisset <dfmoisset@gmail.com>
10 months ago[3.12] gh-58956: Fix a frame refleak in bdb (GH-128190) (#128953)
Tian Gao [Fri, 17 Jan 2025 19:19:37 +0000 (14:19 -0500)] 
[3.12] gh-58956: Fix a frame refleak in bdb (GH-128190) (#128953)

* [3.12] gh-58956: Fix a frame refleak in bdb (GH-128190)
(cherry picked from commit 767c89ba7c5a70626df6e75eb56b546bf911b997)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
10 months ago[3.12] gh-58689: Fix os.kill() error handling on Windows (GH-128932) (#128938)
Miss Islington (bot) [Fri, 17 Jan 2025 12:48:24 +0000 (13:48 +0100)] 
[3.12] gh-58689: Fix os.kill() error handling on Windows (GH-128932) (#128938)

gh-58689: Fix os.kill() error handling on Windows (GH-128932)
(cherry picked from commit 939df0f9f6a76e0916b3ba53841e1413ab90952e)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.12] gh-128017: Make a note that sys variables are read-only (GH-128887) (#128909)
Miss Islington (bot) [Thu, 16 Jan 2025 10:23:48 +0000 (11:23 +0100)] 
[3.12] gh-128017: Make a note that sys variables are read-only (GH-128887) (#128909)

gh-128017: Make a note that sys variables are read-only (GH-128887)
(cherry picked from commit 313b96eb8b8d0ad3bac58d633822a0a3705ce60b)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
10 months ago[3.12] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128871)
Miss Islington (bot) [Thu, 16 Jan 2025 09:09:13 +0000 (10:09 +0100)] 
[3.12] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128871)

* Fix a deprecation warning for using importlib.resources.abc.ResourceReader.
* Fix an import warning when importing readline (if it has not yet been imported).
(cherry picked from commit 599be687ec7327c30c6469cf743aa4ee9e82232d)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
10 months ago[3.12] gh-97850: Suggest `TraversableResources` as the alternative for `ResourceLoade...
Miss Islington (bot) [Wed, 15 Jan 2025 20:55:06 +0000 (21:55 +0100)] 
[3.12] gh-97850: Suggest `TraversableResources` as the alternative for `ResourceLoader` (GH-128601) (GH-128896)

gh-97850: Suggest `TraversableResources` as the alternative for `ResourceLoader` (GH-128601)

Suggest TraversableResources as the alternative for ResourceLoader.

Previously, ResourceReader was the suggested alternative, but it
is itself deprecated in favour of TraversableResources.
(cherry picked from commit 256d6d2131541b3ff8f06f42c8157f808fde464c)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.12] gh-67206: Document that `string.printable` is not printable in the POSIX sense...
Miss Islington (bot) [Wed, 15 Jan 2025 14:28:21 +0000 (15:28 +0100)] 
[3.12] gh-67206: Document that `string.printable` is not printable in the POSIX sense (GH-128820) (#128867)

gh-67206: Document that `string.printable` is not printable in the POSIX sense (GH-128820)
(cherry picked from commit d906bde250d59c396d8dab92285b832c66cdec27)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.12] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128878)
Miss Islington (bot) [Wed, 15 Jan 2025 14:20:08 +0000 (15:20 +0100)] 
[3.12] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128878)

gh-128874: Fix the documentation for blurb 2.0 (GH-128875)
(cherry picked from commit 40a4d88a14c741172a158683c39d232c587c6f11)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.12] gh-128833: Patch `test_embed.test_specialized_static_code_gets_unspecialized_...
Bénédikt Tran [Wed, 15 Jan 2025 13:22:45 +0000 (14:22 +0100)] 
[3.12] gh-128833: Patch  `test_embed.test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE` on Windows (#128860)

Hotfix for `test_embed`

10 months ago[3.12] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128834)
Miss Islington (bot) [Tue, 14 Jan 2025 15:32:11 +0000 (16:32 +0100)] 
[3.12] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128834)

gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812)
(cherry picked from commit 1153e66e20124b8f3484bcaddbc0e252d31161a6)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.12] Fix a "doctest" block in `Doc/library/turtle.rst` (GH-128831) (#128836)
Miss Islington (bot) [Tue, 14 Jan 2025 15:26:46 +0000 (16:26 +0100)] 
[3.12] Fix a "doctest" block in `Doc/library/turtle.rst` (GH-128831) (#128836)

Fix a "doctest" block in `Doc/library/turtle.rst` (GH-128831)
(cherry picked from commit 1598e18a659ef3a533caa0a79a489a3ed1d80bdd)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
10 months ago[3.12] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128795)
Miss Islington (bot) [Mon, 13 Jan 2025 17:16:25 +0000 (18:16 +0100)] 
[3.12] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128795)

gh-125997: Increase test coverage for `time.sleep()` (GH-128751)

- Add tests for durations of invalid types.
- Add tests for `int` and `float` durations, including signed zeroes durations.
- Add tests for nonzero very small durations and durations close to the clock resolution.

---------
(cherry picked from commit b70a567575db37846beecbe8b40fb56b875274db)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.12] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128794)
Miss Islington (bot) [Mon, 13 Jan 2025 16:32:38 +0000 (17:32 +0100)] 
[3.12] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128794)

Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737)
(cherry picked from commit 53e8942e6938df3a32b783815f1bd4b76eed3dd0)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.12] gh-128562: Fix generation of the tkinter widget names (GH-128604) (GH-128792)
Miss Islington (bot) [Mon, 13 Jan 2025 16:23:53 +0000 (17:23 +0100)] 
[3.12] gh-128562: Fix generation of the tkinter widget names (GH-128604) (GH-128792)

There were possible conflicts if the widget class name ends with a digit.
(cherry picked from commit da8825ea95a7096bb4f933d33b212a94ade10f6e)

Co-authored-by: Zhikang Yan <2951256653@qq.com>