]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
8 months ago[3.12] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448...
Adam Turner [Sat, 22 Feb 2025 18:22:29 +0000 (18:22 +0000)] 
[3.12] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448) (#130467)

(cherry picked from commit 5ec4bf86b7f4455432aebace996ef390ae3e9302)

Co-authored-by: sobolevn <mail@sobolevn.me>
8 months ago[3.12] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130459)
Miss Islington (bot) [Sat, 22 Feb 2025 16:13:31 +0000 (17:13 +0100)] 
[3.12] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130459)

Add measuring unit to `sys.getswitchinterval` docs (GH-130457)
(cherry picked from commit 89d8b2d14bb6f7e5c4565b5c3f56d917e6134c89)

Co-authored-by: sobolevn <mail@sobolevn.me>
8 months ago[3.12] gh-129712: Document the wheels tags corresponding to each universal SDK. ...
Miss Islington (bot) [Sat, 22 Feb 2025 08:38:41 +0000 (09:38 +0100)] 
[3.12] gh-129712: Document the wheels tags corresponding to each universal SDK. (GH-130389) (#130450)

Document the architectures supported by macOS universal SDK configuration flags,
and add details on wheel tag naming.
(cherry picked from commit 474c388740ca5f8060c074f517dd14c54409126f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
8 months ago[3.12] GH-121970: Replace custom abstract method directive with the ``:abstract:...
Adam Turner [Sat, 22 Feb 2025 02:11:47 +0000 (02:11 +0000)] 
[3.12] GH-121970: Replace custom abstract method directive with the ``:abstract:`` option (GH-129311) (#130440)

(cherry picked from commit 30e892473e0dfe5c3fecabcaac420cefe45e2ed4)

8 months ago[3.12] GH-103180: Set a timeout for every job in GitHub Actions (GH-130375) (#130432)
Adam Turner [Sat, 22 Feb 2025 01:52:41 +0000 (01:52 +0000)] 
[3.12] GH-103180: Set a timeout for every job in GitHub Actions (GH-130375) (#130432)

(cherry picked from commit d0a1e5c222f9f43b492b28806e2a185a50d64500)

8 months ago[3.12] gh-130159: Fix list indentation in collections.abc (GH-130165) (#130438)
Miss Islington (bot) [Sat, 22 Feb 2025 01:48:15 +0000 (02:48 +0100)] 
[3.12] gh-130159: Fix list indentation in collections.abc (GH-130165) (#130438)

gh-130159: Fix list indentation in collections.abc (GH-130165)
(cherry picked from commit 8e96adf4532943360f09df04cd7d3a5d35f61a24)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130435)
Adam Turner [Sat, 22 Feb 2025 01:33:56 +0000 (01:33 +0000)] 
[3.12] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130435)

(cherry picked from commit b05fa90b21dd01bb836285cdd41920320b09e681)

Authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
8 months ago[3.12] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291...
Miss Islington (bot) [Fri, 21 Feb 2025 17:48:46 +0000 (18:48 +0100)] 
[3.12] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291) (gh-130417)

8 months ago[3.12] Convert change detection to a Python script (GH-129627) (#130370)
Hugo van Kemenade [Fri, 21 Feb 2025 15:18:44 +0000 (17:18 +0200)] 
[3.12] Convert change detection to a Python script (GH-129627) (#130370)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
8 months ago[3.12] gh-129363: Change regrtest sequential mode output (GH-129476) (#130406)
Miss Islington (bot) [Fri, 21 Feb 2025 14:16:27 +0000 (15:16 +0100)] 
[3.12] gh-129363: Change regrtest sequential mode output (GH-129476) (#130406)

gh-129363: Change regrtest sequential mode output (GH-129476)

First, write the test name without color. Then, write the test name
and the result with color. Each test is displayed twice.
(cherry picked from commit f1b81c408fb83beeee519ae4fb9d3a36dd4522b3)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.12] Fix outdated reference link in collections module (gh-130349) (gh-130387)
Miss Islington (bot) [Fri, 21 Feb 2025 00:15:48 +0000 (01:15 +0100)] 
[3.12] Fix outdated reference link in collections module (gh-130349) (gh-130387)

8 months ago[3.12] Itertool recipe additions (gh-127483) (gh-130362)
Hugo van Kemenade [Thu, 20 Feb 2025 23:32:35 +0000 (01:32 +0200)] 
[3.12] Itertool recipe additions (gh-127483) (gh-130362)

8 months ago[3.12] gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839) (#130365)
Miss Islington (bot) [Thu, 20 Feb 2025 16:20:27 +0000 (17:20 +0100)] 
[3.12] gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839) (#130365)

gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839)

Newer GCC versions accept both __attribute__((no_sanitize("undefined")))
and __attribute__((no_sanitize_undefined)) so check that the macro is
not already defined.
(cherry picked from commit 568db400ff07240a5ed6f263af281405ccaec716)

Co-authored-by: Collin Funk <collin.funk1@gmail.com>
8 months ago[3.12] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartit...
Miss Islington (bot) [Thu, 20 Feb 2025 15:50:37 +0000 (16:50 +0100)] 
[3.12] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191) (#130361)

gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191)
(cherry picked from commit 0f5b82169e12321fd2294bf534496ad42a682ac4)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 months ago[3.12] gh-119727: Add --single-process option to regrtest (GH-119728) (#130359)
Hugo van Kemenade [Thu, 20 Feb 2025 15:47:10 +0000 (17:47 +0200)] 
[3.12] gh-119727: Add --single-process option to regrtest (GH-119728) (#130359)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 months ago[3.12] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133...
Sam Gross [Thu, 20 Feb 2025 15:37:43 +0000 (10:37 -0500)] 
[3.12] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133) (gh-130358)

The `test_trace.test_coverage_ignore` test would fail if you had
`setuptools` installed, such as in `~/.local/lib/python3.xxx/site-packages/`.
Ignore everything in `sys.path` when running the test.
(cherry picked from commit 35925e952911aba97bfdaee85b09d734ceac4fea)

8 months ago[3.12] [doc]: Update logging cookbook to mention domain socket configuration in a...
Miss Islington (bot) [Thu, 20 Feb 2025 14:20:00 +0000 (15:20 +0100)] 
[3.12] [doc]: Update logging cookbook to mention domain socket configuration in a recipe. (GH-130348) (GH-130352)

(cherry picked from commit 8cbcf51d614815df3ab7ea557f04e6b4b386968e)

8 months ago[3.12] gh-101100: Fix sphinx warnings in `readline.rst` (GH-130300) (#130347)
Miss Islington (bot) [Thu, 20 Feb 2025 13:39:09 +0000 (14:39 +0100)] 
[3.12] gh-101100: Fix sphinx warnings in `readline.rst` (GH-130300) (#130347)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.12] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340...
Miss Islington (bot) [Thu, 20 Feb 2025 12:16:19 +0000 (13:16 +0100)] 
[3.12] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340) (GH-130341)

(cherry picked from commit 68c57d6f338ebc16be304e640493e29e1c7c3ef5)

(cherry picked from commit 395335d0ff292a15e26575e06f603304d9161ee1)
(cherry picked from commit 10b32054ad6bce821e3b40101d4414d025be6e36)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.12] gh-130250: use support.swap_attr() in test and don't assume we're beginning...
Miss Islington (bot) [Thu, 20 Feb 2025 11:45:42 +0000 (12:45 +0100)] 
[3.12] gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342) (#130345)

gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342)
(cherry picked from commit 048ee2d5ec761296ef67f5c59aee1f24408b12db)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
8 months ago[3.12] gh-69001: Convert links to more usable buttons (GH-129591) (#130339)
Miss Islington (bot) [Thu, 20 Feb 2025 08:49:51 +0000 (09:49 +0100)] 
[3.12] gh-69001: Convert links to more usable buttons (GH-129591) (#130339)

gh-69001: Convert links to more usable buttons (GH-129591)

In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works.  All buttons might get converted to colored and underlined links in the future.
---------
(cherry picked from commit ed831b95a231ef949da13a261b40ee1ea0e126d7)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
8 months ago[3.12] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (...
Miss Islington (bot) [Thu, 20 Feb 2025 07:53:58 +0000 (08:53 +0100)] 
[3.12] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (#130336)

gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324)
(cherry picked from commit 47ace539950fb675d5968736348f0d724ba199f0)

Co-authored-by: Sabfo <alpha.sabfo@gmail.com>
8 months ago[3.12] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130331)
Miss Islington (bot) [Thu, 20 Feb 2025 01:54:37 +0000 (02:54 +0100)] 
[3.12] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130331)

gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329)
(cherry picked from commit c718c6be0f82af5eb0e57615ce323242155ff014)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
8 months ago[3.12] gh-130250: fix regression in traceback.print_last (GH-130318) (#130326)
Miss Islington (bot) [Wed, 19 Feb 2025 22:01:32 +0000 (23:01 +0100)] 
[3.12] gh-130250: fix regression in traceback.print_last (GH-130318) (#130326)

gh-130250: fix regression in traceback.print_last (GH-130318)
(cherry picked from commit 6c982aeb547528174f8bc843267f584d8b133d14)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
8 months ago[3.12] gh-122876: Fix "End of lines" typo (GH-125310) (#130316)
Miss Islington (bot) [Wed, 19 Feb 2025 19:24:21 +0000 (20:24 +0100)] 
[3.12] gh-122876: Fix "End of lines" typo (GH-125310) (#130316)

Co-authored-by: za <za@python.or.id>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.12] CI: Make macOS required to succeed (GH-110362) (#130299)
Hugo van Kemenade [Wed, 19 Feb 2025 11:46:45 +0000 (13:46 +0200)] 
[3.12] CI: Make macOS required to succeed (GH-110362) (#130299)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
8 months ago[3.12] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130288)
Miss Islington (bot) [Tue, 18 Feb 2025 23:55:11 +0000 (00:55 +0100)] 
[3.12] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130288)

Docs: Upgrade Sphinx to 8.2 (GH-130171)
(cherry picked from commit 736ad664e0c3be05fad76a764b68ffb700afb612)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (...
sobolevn [Tue, 18 Feb 2025 14:18:30 +0000 (17:18 +0300)] 
[3.12] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (#130265)

8 months ago[3.12] gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh...
Miss Islington (bot) [Tue, 18 Feb 2025 12:53:02 +0000 (13:53 +0100)] 
[3.12] gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253) (gh-130258)

gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253)
(cherry picked from commit 8cd7f8bf8d6b62f30a8bba1f968eb0c593a8781a)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
8 months ago[3.12] gh-130230: Add new tests for 3-arg pow() with Decimal (GH-130237) (GH-130247)
Serhiy Storchaka [Tue, 18 Feb 2025 08:18:40 +0000 (10:18 +0200)] 
[3.12] gh-130230: Add new tests for 3-arg pow() with Decimal (GH-130237) (GH-130247)

(cherry picked from commit b93b7e566e5a4efe7f077af2083140e50bd2b08f)

8 months ago[3.12] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130224)
Miss Islington (bot) [Mon, 17 Feb 2025 16:24:30 +0000 (17:24 +0100)] 
[3.12] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130224)

gh-130214: Document `PyEllipsis_Type` (GH-130215)
(cherry picked from commit fc8c99a8ce483db23fa624592457e350e99193f6)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.12] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772...
Miss Islington (bot) [Mon, 17 Feb 2025 16:01:27 +0000 (17:01 +0100)] 
[3.12] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772) (#130229)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH...
Hugo van Kemenade [Mon, 17 Feb 2025 13:42:19 +0000 (15:42 +0200)] 
[3.12] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH-130200) (#130226)

8 months ago[3.12] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130125)
Stan Ulbrych [Mon, 17 Feb 2025 13:07:59 +0000 (13:07 +0000)] 
[3.12] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130125)

We had the definition of what makes a character "printable" documented in three places, giving two different definitions.
The definition in the comment on `_PyUnicode_IsPrintable` was inverted; correct that.

With that correction, the two definitions turn out to be equivalent -- but to confirm that, you have to go look up, or happen to know, that those are the only five "Other" categories and only three "Separator" categories in the Unicode character database.  That makes it hard for the reader to tell whether they really are the same, or if there's some subtle difference in the intended semantics.

Fix that by cutting the C API docs' and the C comment's copies of the subtle details, in favor of referring to the Python-level docs. That ensures it's explicit that these are all meant to agree, and also lets us concentrate improvements to the wording in one place.

Speaking of which, borrow some ideas from the C comment, along with other tweaks, to hopefully add a bit more clarity to that one newly-centralized copy in the docs.

Also add a thorough test that the implementation agrees with this definition.

Co-authored-by: Greg Price <gnprice@gmail.com>
(cherry picked from commit 3402e133ef26736296c07992266a82b181a5d532)

8 months ago[3.12] gh-130193: Increase test coverage of gettext.c2py (GH-130208) (GH-130218)
Miss Islington (bot) [Mon, 17 Feb 2025 09:14:13 +0000 (10:14 +0100)] 
[3.12] gh-130193: Increase test coverage of gettext.c2py (GH-130208) (GH-130218)

(cherry picked from commit fb2d325725dcc881868b576b9d0d9f4bf7f24fe0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.12] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130212)
Miss Islington (bot) [Mon, 17 Feb 2025 08:25:20 +0000 (09:25 +0100)] 
[3.12] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130212)

Test it with the third argument.
(cherry picked from commit cfe41037eb5293a051846ddc0b4afdb7a5f60540)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.12] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201...
Miss Islington (bot) [Sun, 16 Feb 2025 18:56:18 +0000 (19:56 +0100)] 
[3.12] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201) (#130205)

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

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

This reverts commit 49f24650e4541456872490ec2b59d6d186204891.
Also known as f502c8f6a6db4be27c97a0e5466383d117859b7f in 3.13 (PR GH-129447)
Also known as f65aa0d1bf7b636ab8f9d226429205854b24cd7a in 3.12 (PR GH-129448)

This caused bugs in the `__del__` finalizer:
 https://github.com/python/cpython/issues/118761#issuecomment-2661504264

---------
(cherry picked from commit ae3064608935367c860182dc1b364631082ecdff)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.12] gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186...
Miss Islington (bot) [Sun, 16 Feb 2025 13:52:55 +0000 (14:52 +0100)] 
[3.12] gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186) (#130189)

gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186)
(cherry picked from commit 73d03005b028eb6e4d1a643f3ca7a1f5ff2040fc)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.12] gh-127488: Add tests for Tools/i18n/msgfmt.py (GH-127540) (GH-130181)
Miss Islington (bot) [Sun, 16 Feb 2025 13:14:50 +0000 (14:14 +0100)] 
[3.12] gh-127488: Add tests for Tools/i18n/msgfmt.py (GH-127540) (GH-130181)

(cherry picked from commit 361083b84b0db975058b2d1f50dcbfd36f072caf)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.12] gh-130177: Fix unintentionally skipped tests in test_gettext (GH-130178) ...
Miss Islington (bot) [Sun, 16 Feb 2025 12:31:24 +0000 (13:31 +0100)] 
[3.12] gh-130177: Fix unintentionally skipped tests in test_gettext (GH-130178) (GH-130184)

(cherry picked from commit 2e8044a4f74f5fc19e5249139c171403aff0118d)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.12] gh-130169: Fix broken list markup in `Doc/c-api/function.rst` (GH-130174)...
Miss Islington (bot) [Sun, 16 Feb 2025 11:04:07 +0000 (12:04 +0100)] 
[3.12] gh-130169: Fix broken list markup in `Doc/c-api/function.rst` (GH-130174) (#130176)

gh-130169: Fix broken list markup in `Doc/c-api/function.rst` (GH-130174)
(cherry picked from commit 9837c2a21457e4eacabf606c44ec42d1962f11f1)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
8 months agoDoc: update term "namespace package" (GH-129251)
Miss Islington (bot) [Sat, 15 Feb 2025 06:11:38 +0000 (07:11 +0100)] 
Doc: update term "namespace package" (GH-129251)

(cherry picked from commit e65e9f90626a4c62da4d3500044f354b51e51dbb)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
8 months ago[3.12] gh-130106: Fix a typo in unittest.mock doc (GH-130107) (#130144)
Miss Islington (bot) [Sat, 15 Feb 2025 03:59:08 +0000 (04:59 +0100)] 
[3.12] gh-130106: Fix a typo in unittest.mock doc (GH-130107) (#130144)

gh-130106: Fix a typo in unittest.mock doc (GH-130107)
(cherry picked from commit d2e60d8e598b622573b68b80b4fbf98c021dd087)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
8 months agogh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854)
Miss Islington (bot) [Fri, 14 Feb 2025 17:45:28 +0000 (18:45 +0100)] 
gh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854)

(cherry picked from commit 303043f5062c1e7ffb7907abde61dbf13c98f8e9)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
8 months ago[3.12] gh-116042: Fix location for SyntaxErrors of invalid escapes in the tokenizer...
Pablo Galindo Salgado [Thu, 13 Feb 2025 01:42:24 +0000 (01:42 +0000)] 
[3.12] gh-116042: Fix location for SyntaxErrors of invalid escapes in the tokenizer (GH-116049) (#130065)

(cherry picked from commit 56eda256336310a08d4beb75b998488cb359444b)

8 months ago[3.12] gh-129912: Fix references to `Py_TPFLAGS_MANAGED_DICT` (gh-130044) (gh-130060)
Miss Islington (bot) [Wed, 12 Feb 2025 22:55:30 +0000 (23:55 +0100)] 
[3.12] gh-129912: Fix references to `Py_TPFLAGS_MANAGED_DICT` (gh-130044) (gh-130060)

(cherry picked from commit 791cdfe1416a591e240b8ffc6f10eb6f659c8277)

Co-authored-by: Satyam Kumar <isatyamks@gmail.com>
8 months ago[3.12] gh-59149: Setup documentation for IDLE on Linux and add section in Editors...
Miss Islington (bot) [Wed, 12 Feb 2025 08:26:30 +0000 (09:26 +0100)] 
[3.12] gh-59149: Setup documentation for IDLE on Linux and add section in Editors (GH-130003) (#130028)

---------
(cherry picked from commit 555ee43d929ad4b917db2caee3f2c10a2636832c)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 months ago[3.12] gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module...
Tomas R. [Tue, 11 Feb 2025 23:31:44 +0000 (00:31 +0100)] 
[3.12] gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855) (GH-130017)

(cherry picked from commit aa81a6f6e4f265565da9781d0bf95c7d16ddd961)

8 months ago[3.12] gh-101100: Docs: Fix some typos in the document (GH-129988) (#129998)
Hugo van Kemenade [Tue, 11 Feb 2025 21:31:48 +0000 (23:31 +0200)] 
[3.12] gh-101100: Docs: Fix some typos in the document (GH-129988) (#129998)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
8 months ago[3.12] gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934) (GH-129962)
Miss Islington (bot) [Mon, 10 Feb 2025 16:36:10 +0000 (17:36 +0100)] 
[3.12] gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934) (GH-129962)

gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934)

(cherry picked from commit 8d9d3e4ecb4c908df6560b54138dd5af73b3ed47)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 months ago[3.12] gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726...
Miss Islington (bot) [Mon, 10 Feb 2025 14:29:57 +0000 (15:29 +0100)] 
[3.12] gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726) (GH-129956)

(cherry picked from commit d7672e5d5a7b9580a72dbe75d3a9e8840bcc604c)

8 months ago[3.12] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950...
Miss Islington (bot) [Mon, 10 Feb 2025 11:26:18 +0000 (12:26 +0100)] 
[3.12] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950) (GH-129952)

(cherry picked from commit 7c156a63d3d5aadff0d40af73c0f622f7a0fcea5)

8 months ago[3.12] gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym`...
Miss Islington (bot) [Mon, 10 Feb 2025 10:08:18 +0000 (11:08 +0100)] 
[3.12] gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872) (#129945)

gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872)

In case gcc is not available, the test will fail with FileNotFoundError.
So catch the exception to skip the test correctly.
(cherry picked from commit 978211c8a8646b050a8d687ca720f934fcce112c)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Co-authored-by: Peter Marko <peter.marko@siemens.com>
8 months ago[3.12] gh-68400: Remove outdated 2.7 comment (GH-129919) (#129938)
Miss Islington (bot) [Mon, 10 Feb 2025 05:10:02 +0000 (06:10 +0100)] 
[3.12] gh-68400: Remove outdated 2.7 comment (GH-129919) (#129938)

(cherry picked from commit d9bf3c16e53f04b600e42cd0ac560820e3522b57)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
8 months ago[3.12] gh-129603: Don't segfault if sqlite3.Row description is None (#129604) (#129924)
Erlend E. Aasland [Mon, 10 Feb 2025 00:14:40 +0000 (01:14 +0100)] 
[3.12] gh-129603: Don't segfault if sqlite3.Row description is None (#129604) (#129924)

(cherry picked from commit 7e6ee50b6b8c760bcefb92ab4ddbc3d85d37a834)

8 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>
8 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>
8 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)

8 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>
8 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>
8 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>
8 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>