]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
10 months ago[3.13] gh-128330: Terminal control characters should be restored on repl exit (GH...
Miss Islington (bot) [Thu, 23 Jan 2025 17:55:28 +0000 (18:55 +0100)] 
[3.13] gh-128330: Terminal control characters should be restored on repl exit (GH-128331) (#129233)

gh-128330: Terminal control characters should be restored on repl exit (GH-128331)
(cherry picked from commit 0b15d9c0d2d30c7d3f17ebb90dd822ef32f977cc)

Co-authored-by: Andy Fiddaman <andy@omnios.org>
10 months ago[3.13] gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) (#129217)
Victor Stinner [Thu, 23 Jan 2025 12:59:19 +0000 (13:59 +0100)] 
[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)

10 months ago[3.13] Add colour to GitHub Actions output (GH-129196) (#129198)
Miss Islington (bot) [Wed, 22 Jan 2025 21:45:08 +0000 (22:45 +0100)] 
[3.13] Add colour to GitHub Actions output (GH-129196) (#129198)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars...
Hugo van Kemenade [Wed, 22 Jan 2025 19:09:51 +0000 (21:09 +0200)] 
[3.13] gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (GH-127877) (#129138)

10 months ago[3.13] gh-124363: Treat debug expressions in f-string as raw strings (GH-128399)...
Miss Islington (bot) [Wed, 22 Jan 2025 17:19:07 +0000 (18:19 +0100)] 
[3.13] gh-124363: Treat debug expressions in f-string as raw strings (GH-128399) (#129187)

gh-124363: Treat debug expressions in f-string as raw strings (GH-128399)

(cherry picked from commit 60a3a0dd6fe140fdc87f6e769ee5bb17d92efe4e)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
10 months ago[3.13] gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invali...
Miss Islington (bot) [Wed, 22 Jan 2025 16:38:13 +0000 (17:38 +0100)] 
[3.13] gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invalid value (GH-128653) (#129186)

gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invalid value (GH-128653)
(cherry picked from commit ba9a4b621577b92f36d88388cc9f791c2dc7d7ba)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.13] gh-128770: fix ResourceWarning in test_pyrepl (GH-128906) (#129179)
Miss Islington (bot) [Wed, 22 Jan 2025 13:13:08 +0000 (14:13 +0100)] 
[3.13] gh-128770: fix ResourceWarning in test_pyrepl (GH-128906) (#129179)

10 months ago[3.13] gh-128894: Fix `TracebackException._format_syntax_error` on custom `SyntaxErro...
Miss Islington (bot) [Wed, 22 Jan 2025 13:12:39 +0000 (14:12 +0100)] 
[3.13] gh-128894: Fix `TracebackException._format_syntax_error` on custom `SyntaxError` metadata (GH-128946) (#129178)

10 months ago[3.13] gh-129093: Fix f-string debug text sometimes getting cut off when expression...
Miss Islington (bot) [Wed, 22 Jan 2025 00:50:22 +0000 (01:50 +0100)] 
[3.13] gh-129093: Fix f-string debug text sometimes getting cut off when expression contains `!` (GH-129159) (#129163)

gh-129093: Fix f-string debug text sometimes getting cut off when expression contains `!` (GH-129159)
(cherry picked from commit 767cf708449fbf13826d379ecef64af97d779510)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.13] gh-123024: Correctly prepare/restore around help and show-history commands...
Miss Islington (bot) [Tue, 21 Jan 2025 22:15:57 +0000 (23:15 +0100)] 
[3.13] gh-123024: Correctly prepare/restore around help and show-history commands (GH-124485) (#129155)

gh-123024: Correctly prepare/restore around help and show-history commands (GH-124485)
(cherry picked from commit 5a9afe23620aadea30013076d64686be8bf66f7e)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Emily Morehouse <emily@cuttlesoft.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
10 months ago[3.13] gh-125553: Fix backslash continuation in `untokenize` (GH-126010) (#129153)
Miss Islington (bot) [Tue, 21 Jan 2025 21:04:55 +0000 (22:04 +0100)] 
[3.13] gh-125553: Fix backslash continuation in `untokenize` (GH-126010) (#129153)

gh-125553: Fix backslash continuation in `untokenize` (GH-126010)
(cherry picked from commit 7ad793e5dbdf07e51a71b70d20f3e6e3ab60244d)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.13] gh-126332: Fix pyrepl crash for double ctrl-z in line overflow (GH-126650...
Miss Islington (bot) [Tue, 21 Jan 2025 21:04:41 +0000 (22:04 +0100)] 
[3.13] gh-126332: Fix pyrepl crash for double ctrl-z in line overflow (GH-126650) (#129154)

gh-126332: Fix pyrepl crash for double ctrl-z in line overflow (GH-126650)

(cherry picked from commit d147e5e52cdb90496ae5fe85b3263cdfa9407a28)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
10 months ago[3.13] Move to public Linux arm64 hosted runners (#129146)
Diego Russo [Tue, 21 Jan 2025 20:40:59 +0000 (20:40 +0000)] 
[3.13] Move to public Linux arm64 hosted runners (#129146)

10 months ago[3.13] gh-122845: fix parameter_list_starargs in function definition pseudo-grammar...
Miss Islington (bot) [Tue, 21 Jan 2025 20:12:43 +0000 (21:12 +0100)] 
[3.13] gh-122845: fix parameter_list_starargs in function definition pseudo-grammar (GH-122847) (#129150)

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>
10 months ago[3.13] gh-128595: Default to stdout isatty for colour detection instead of stderr...
Hugo van Kemenade [Tue, 21 Jan 2025 16:14:24 +0000 (18:14 +0200)] 
[3.13] gh-128595: Default to stdout isatty for colour detection instead of stderr (GH-128498) (#129057)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Fix `test__colorize` unexpected keyword argument 'file' on buildbots (#129070)

10 months ago[3.13] gh-118915: C API: Document compiler flag macros (GH-129028) (GH-129086)
Miss Islington (bot) [Tue, 21 Jan 2025 10:47:55 +0000 (11:47 +0100)] 
[3.13] gh-118915: C API: Document compiler flag macros (GH-129028) (GH-129086)

(cherry picked from commit 6e02096e2f9a18671d608f79dd61c5757deca4e8)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
10 months ago[3.13] Docs: fix typo in `Doc/howto/mro.rst` (GH-129095) (GH-129122)
Miss Islington (bot) [Tue, 21 Jan 2025 09:40:31 +0000 (10:40 +0100)] 
[3.13] Docs: fix typo in `Doc/howto/mro.rst` (GH-129095) (GH-129122)

(cherry picked from commit da310d209a6af45e5e1ea48a873f1d14be471a09)

Co-authored-by: smelnikov <13030121+smelnikov@users.noreply.github.com>
10 months ago[3.13] GH-121970: Extract ``changes`` into a new extension (GH-129105) (#129109)
Miss Islington (bot) [Mon, 20 Jan 2025 23:58:41 +0000 (00:58 +0100)] 
[3.13] GH-121970: Extract ``changes`` into a new extension (GH-129105) (#129109)

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>
10 months ago[3.13] gh-111178: fix UBSan failures in `Modules/_multiprocessing/semaphore.c` (GH...
Miss Islington (bot) [Mon, 20 Jan 2025 21:05:52 +0000 (22:05 +0100)] 
[3.13] gh-111178: fix UBSan failures in `Modules/_multiprocessing/semaphore.c` (GH-129084) (#129100)

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>
10 months ago[3.13] doc: fix venv creating for the local Python using uv (GH-129094) (#129096)
Miss Islington (bot) [Mon, 20 Jan 2025 19:13:12 +0000 (20:13 +0100)] 
[3.13] doc: fix venv creating for the local Python using uv (GH-129094) (#129096)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
10 months ago[3.13] GH-128131: Completely support random read access of uncompressed unencrypted...
Miss Islington (bot) [Mon, 20 Jan 2025 18:28:52 +0000 (19:28 +0100)] 
[3.13] GH-128131: Completely support random read access of uncompressed unencrypted files in ZipFile (GH-128143) (#129091)

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>
10 months ago[3.13] gh-128588: gh-128550: remove eager tasks optimization that missed and introduc...
Miss Islington (bot) [Mon, 20 Jan 2025 17:36:50 +0000 (18:36 +0100)] 
[3.13] gh-128588: gh-128550: remove eager tasks optimization that missed and introduced incorrect cancellations (GH-129063) (#129089)

gh-128588: gh-128550: remove eager tasks optimization that missed and introduced incorrect cancellations (GH-129063)
(cherry picked from commit ed6934e71e55d398df8263f4697f58e4a3815f69)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
10 months ago[3.13] Docs C API: Clarify what happens when null bytes are passed to `PyUnicode_AsUT...
Miss Islington (bot) [Mon, 20 Jan 2025 16:04:53 +0000 (17:04 +0100)] 
[3.13] Docs C API: Clarify what happens when null bytes are passed to `PyUnicode_AsUTF8` (GH-127458) (#129080)

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.13] gh-129044: Update glossary entry for 'loader' to reflect current import system...
Miss Islington (bot) [Mon, 20 Jan 2025 15:51:52 +0000 (16:51 +0100)] 
[3.13] gh-129044: Update glossary entry for 'loader' to reflect current import system (GH-129073) (#129077)

gh-129044: Update glossary entry for 'loader' to reflect current import system (GH-129073)
(cherry picked from commit e1fa2fcc7c1bf5291a7f71300b7828b49be9ab72)

Co-authored-by: nikalinov <92603661+nikalinov@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
10 months ago[3.13] gh-128978: Fix a `NameError` in `sysconfig.expand_makefile_vars` (GH-128979...
Miss Islington (bot) [Mon, 20 Jan 2025 13:54:48 +0000 (14:54 +0100)] 
[3.13] gh-128978: Fix a `NameError` in `sysconfig.expand_makefile_vars` (GH-128979) (#129065)

gh-128978: Fix a `NameError` in `sysconfig.expand_makefile_vars` (GH-128979)

This fixes a regression introduced by 4a53a397c311567f05553bc25a28aebaba4f6f65.
(cherry picked from commit df66ff14b49f4388625212f6bc86b754cb51d4eb)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] Fix a typo in `syslog`'s error message (GH-129029) (#129049)
Miss Islington (bot) [Mon, 20 Jan 2025 10:37:21 +0000 (11:37 +0100)] 
[3.13] Fix a typo in `syslog`'s error message (GH-129029) (#129049)

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.13] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH...
Serhiy Storchaka [Mon, 20 Jan 2025 09:19:00 +0000 (11:19 +0200)] 
[3.13] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH-128815)

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 06cad77a5b345adde88609be9c3c470c5cd9f417)

10 months ago[3.13] GH-125722: Use long options for Sphinx (GH-129039) (#129041)
Miss Islington (bot) [Mon, 20 Jan 2025 07:17:29 +0000 (08:17 +0100)] 
[3.13] GH-125722: Use long options for Sphinx (GH-129039) (#129041)

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.13] GH-125722: Increase minimum supported Sphinx to 8.1.3 (GH-128922) (#129037)
Miss Islington (bot) [Mon, 20 Jan 2025 00:52:00 +0000 (01:52 +0100)] 
[3.13] GH-125722: Increase minimum supported Sphinx to 8.1.3 (GH-128922) (#129037)

(cherry picked from commit d46b577ec026c2e700a9f920f81cfbf698e53eb6)

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

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.13] gh-80222: Fix email address header folding with long quoted-string (GH-122753...
Miss Islington (bot) [Sun, 19 Jan 2025 21:06:28 +0000 (22:06 +0100)] 
[3.13] gh-80222: Fix email address header folding with long quoted-string (GH-122753) (#129007)

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.13] gh-128679: Fix tracemalloc.stop() race conditions (#128897)
Victor Stinner [Sat, 18 Jan 2025 23:39:07 +0000 (00:39 +0100)] 
[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.

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

[3.13] 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.13] gh-128998: Fix indentation of numbered list and literal block (GH-128999)...
Miss Islington (bot) [Sat, 18 Jan 2025 20:58:20 +0000 (21:58 +0100)] 
[3.13] gh-128998: Fix indentation of numbered list and literal block (GH-128999) (#129000)

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.13] Pre-commit: Drop specific language version and bump hooks (GH-128801) (#128994)
Peter Bierma [Sat, 18 Jan 2025 20:52:07 +0000 (15:52 -0500)] 
[3.13] Pre-commit: Drop specific language version and bump hooks (GH-128801) (#128994)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
10 months ago[3.13] gh-121542: Document trailing newline behavior in `set_content()` (GH-121543...
Miss Islington (bot) [Sat, 18 Jan 2025 18:40:30 +0000 (19:40 +0100)] 
[3.13] gh-121542: Document trailing newline behavior in `set_content()` (GH-121543) (#128995)

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.13] gh-127599: Fix _Py_RefcntAdd missing calls to _Py_INCREF_STAT_INC/_Py_INCREF_I...
Ed Nutting [Sat, 18 Jan 2025 17:00:46 +0000 (17:00 +0000)] 
[3.13] gh-127599: Fix _Py_RefcntAdd missing calls to _Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (GH-127717) (#128713)

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.13] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987)
Victor Stinner [Sat, 18 Jan 2025 14:49:55 +0000 (15:49 +0100)] 
[3.13] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987)

* gh-111495: Add more tests on PyEval C APIs (#122789)

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

10 months ago[3.13] gh-125997: suggest efficient alternatives for `time.sleep(0)` (GH-128752)...
Miss Islington (bot) [Sat, 18 Jan 2025 11:08:42 +0000 (12:08 +0100)] 
[3.13] gh-125997: suggest efficient alternatives for `time.sleep(0)` (GH-128752) (#128984)

gh-125997: suggest efficient alternatives for `time.sleep(0)` (GH-128752)
(cherry picked from commit f4afaa6f1190fbbea3e27c590096951d8ffdfb71)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] gh-128961: Fix exhausted array iterator crash in __setstate__() (GH-128962...
Miss Islington (bot) [Sat, 18 Jan 2025 10:17:42 +0000 (11:17 +0100)] 
[3.13] gh-128961: Fix exhausted array iterator crash in __setstate__() (GH-128962) (#128976)

(cherry picked from commit 4dade055f4e18a7e91bc70293abb4db745ad16ca)

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

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.13] Fix definition of a `generator iterator` in `glossary.rst` (GH-128952) (#128967)
Miss Islington (bot) [Sat, 18 Jan 2025 00:52:10 +0000 (01:52 +0100)] 
[3.13] Fix definition of a `generator iterator` in `glossary.rst` (GH-128952) (#128967)

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.13] gh-128911: Add tests on the PyImport C API (#128915) (#128960)
Victor Stinner [Fri, 17 Jan 2025 21:44:51 +0000 (22:44 +0100)] 
[3.13] gh-128911: Add tests on the PyImport C API (#128915) (#128960)

gh-128911: Add tests on the PyImport C API (#128915)

* 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.

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

10 months ago[3.13] gh-58956: Fix a frame refleak in bdb (GH-128190) (#128947)
Miss Islington (bot) [Fri, 17 Jan 2025 17:49:15 +0000 (18:49 +0100)] 
[3.13] gh-58956: Fix a frame refleak in bdb (GH-128190) (#128947)

* 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.13] gh-128017: Make a note that sys variables are read-only (GH-128887) (#128908)
Miss Islington (bot) [Fri, 17 Jan 2025 16:04:00 +0000 (17:04 +0100)] 
[3.13] gh-128017: Make a note that sys variables are read-only (GH-128887) (#128908)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
10 months ago[3.13] gh-58689: Fix os.kill() error handling on Windows (GH-128932) (#128937)
Miss Islington (bot) [Fri, 17 Jan 2025 12:55:07 +0000 (13:55 +0100)] 
[3.13] gh-58689: Fix os.kill() error handling on Windows (GH-128932) (#128937)

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.13] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128870)
Miss Islington (bot) [Thu, 16 Jan 2025 08:57:14 +0000 (09:57 +0100)] 
[3.13] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128870)

* 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.13] gh-97850: Suggest `TraversableResources` as the alternative for `ResourceLoade...
Miss Islington (bot) [Wed, 15 Jan 2025 20:53:17 +0000 (21:53 +0100)] 
[3.13] gh-97850: Suggest `TraversableResources` as the alternative for `ResourceLoader` (GH-128601) (GH-128895)

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.13] gh-67206: Document that `string.printable` is not printable in the POSIX sense...
Miss Islington (bot) [Wed, 15 Jan 2025 14:27:27 +0000 (15:27 +0100)] 
[3.13] gh-67206: Document that `string.printable` is not printable in the POSIX sense (GH-128820) (#128868)

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.13] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128877)
Miss Islington (bot) [Wed, 15 Jan 2025 14:20:22 +0000 (15:20 +0100)] 
[3.13] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128877)

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.13] gh-106320: Document replacement for removed C API (GH-128787) (#128837)
Miss Islington (bot) [Tue, 14 Jan 2025 15:42:30 +0000 (16:42 +0100)] 
[3.13] gh-106320: Document replacement for removed C API (GH-128787) (#128837)

gh-106320: Document replacement for removed C API (GH-128787)
(cherry picked from commit 43ef9587ae869fd11711a3bb126e65afe9177342)

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

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.13] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128821)
Miss Islington (bot) [Tue, 14 Jan 2025 10:55:33 +0000 (11:55 +0100)] 
[3.13] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (#128821)

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.13] gh-128717: Stop-the-world when setting the recursion limit (GH-128741) (#128757)
Peter Bierma [Tue, 14 Jan 2025 08:03:52 +0000 (03:03 -0500)] 
[3.13] gh-128717: Stop-the-world when setting the recursion limit (GH-128741) (#128757)

[3.13] gh-128717: Stop-the-world when setting the recursion limit (GH-128741)
(cherry picked from commit f6c61bf2d7d8b66ccd9f16e723546bdcc251a3d0)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
10 months ago[3.13] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128796)
Miss Islington (bot) [Mon, 13 Jan 2025 17:23:27 +0000 (18:23 +0100)] 
[3.13] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) (#128796)

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.13] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128793)
Miss Islington (bot) [Mon, 13 Jan 2025 16:45:15 +0000 (17:45 +0100)] 
[3.13] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128793)

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.13] gh-128731: Explicitly close socket on error in robotparser.RobotFileParser...
Miss Islington (bot) [Mon, 13 Jan 2025 16:44:49 +0000 (17:44 +0100)] 
[3.13] gh-128731: Explicitly close socket on error in robotparser.RobotFileParser.read() (GH-128733) (GH-128755)

(cherry picked from commit 5e65a1acc0b630397f1d190aed279114e6e99612)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-128562: Fix generation of the tkinter widget names (GH-128604) (GH-128791)
Miss Islington (bot) [Mon, 13 Jan 2025 16:23:33 +0000 (17:23 +0100)] 
[3.13] gh-128562: Fix generation of the tkinter widget names (GH-128604) (GH-128791)

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>
10 months ago[3.13] gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationV...
Miss Islington (bot) [Mon, 13 Jan 2025 13:20:49 +0000 (14:20 +0100)] 
[3.13] gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationValue` (GH-128780) (#128785)

gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationValue` (GH-128780)
(cherry picked from commit 76ffaef729c91bb79da6df2ade48f3ec51118300)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
10 months ago[3.13] gh-128759: fix data race in `type_modified_unlocked` (GH-128764) (#128769)
Miss Islington (bot) [Mon, 13 Jan 2025 12:39:39 +0000 (13:39 +0100)] 
[3.13] gh-128759: fix data race in `type_modified_unlocked` (GH-128764) (#128769)

* gh-128759: fix data race in `type_modified_unlocked` (GH-128764)
(cherry picked from commit 6e1e78054060ad326f26dd8dbf12adfedbb52883)

Co-authored-by: sobolevn <mail@sobolevn.me>
10 months ago[3.13] gh-128595: Add test class helper to force no terminal colour (GH-128687) ...
Hugo van Kemenade [Mon, 13 Jan 2025 11:57:44 +0000 (13:57 +0200)] 
[3.13] gh-128595: Add test class helper to force no terminal colour (GH-128687) (#128778)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
10 months ago[3.13] gh-123345: improve `fnmatch` docs (GH-123346) (#128776)
Miss Islington (bot) [Mon, 13 Jan 2025 10:35:26 +0000 (11:35 +0100)] 
[3.13] gh-123345: improve `fnmatch` docs (GH-123346) (#128776)

gh-123345: improve `fnmatch` docs (GH-123346)
(cherry picked from commit 29fe8072cf404b891dde9c1d415095edddbe19de)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] gh-128409: Document that pdb.post_mortem() accepts exceptions … (#128767)
Tian Gao [Mon, 13 Jan 2025 05:12:11 +0000 (00:12 -0500)] 
[3.13] gh-128409: Document that pdb.post_mortem() accepts exceptions … (#128767)

* [3.13] gh-128409: Document that pdb.post_mortem() accepts exceptions (GH-128410)
(cherry picked from commit 1b39b502d33c68f52fd775c4e6c2174baddd40bd)

Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
10 months ago[3.13] gh-128734: Explicitly close sockets in urllib tests (GH-128735) (GH-128748)
Serhiy Storchaka [Sun, 12 Jan 2025 11:30:29 +0000 (13:30 +0200)] 
[3.13] gh-128734: Explicitly close sockets in urllib tests (GH-128735) (GH-128748)

(cherry picked from commit 5ace71713b03cb37d829f50c849a8bb8a518738d)

10 months ago[3.13] gh-127614: Correctly check for ttyname_r() in configure (#128503) (#128598)
Erlend E. Aasland [Sat, 11 Jan 2025 11:47:49 +0000 (12:47 +0100)] 
[3.13] gh-127614: Correctly check for ttyname_r() in configure (#128503) (#128598)

(cherry picked from commit e08b28235a863323ca3a7e444776bb7803e77caf)

PR #14868 replaced the ttyname() call with ttyname_r(), but the old
check remained.

10 months ago[3.13] gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) (#128582)
Miss Islington (bot) [Sat, 11 Jan 2025 11:31:04 +0000 (12:31 +0100)] 
[3.13] gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) (#128582)

gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284)

* Allow DOMParser.parse() to correctly handle DOMInputSource instances
  that only have a systemId attribute set.
* Fix DOMEntityResolver.resolveEntity(), which was broken by the
  Python 3.0 transition.
* Add Lib/test/test_xml_dom_xmlbuilder.py with few tests.
(cherry picked from commit 6ea04da27036eaa69d65150148bb8c537d9beacf)

Co-authored-by: Stephen Morton <git@tungol.org>
10 months ago[3.13] gh-118915: Document `PyUnstable_InterpreterState_GetMainModule` (GH-128483...
Miss Islington (bot) [Fri, 10 Jan 2025 07:41:14 +0000 (08:41 +0100)] 
[3.13] gh-118915: Document `PyUnstable_InterpreterState_GetMainModule` (GH-128483) (GH-128677)

(cherry picked from commit ea39c8b08d8f025273bfa5b7a95f7b5984dc1e86)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
10 months ago[3.13] gh-126862: Use `Py_ssize_t` instead of `int` when processing the number of...
Miss Islington (bot) [Fri, 10 Jan 2025 03:56:35 +0000 (04:56 +0100)] 
[3.13] gh-126862: Use `Py_ssize_t` instead of `int` when processing the number of super-classes  (GH-127523) (#128699)

gh-126862: Use `Py_ssize_t` instead of `int` when processing the number of super-classes  (GH-127523)
(cherry picked from commit 2fcdc8488c32d18f4567f797094068a994777f16)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] gh-127196: Fix crash in `_interpreters`, when `shared` had invalid encodings...
Miss Islington (bot) [Thu, 9 Jan 2025 20:10:08 +0000 (21:10 +0100)] 
[3.13] gh-127196: Fix crash in `_interpreters`, when `shared` had invalid encodings (GH-127220) (#128689)

gh-127196: Fix crash in `_interpreters`, when `shared` had invalid encodings (GH-127220)
(cherry picked from commit 087bb48acac997c06e69dae25bae2dd75194b980)

Co-authored-by: sobolevn <mail@sobolevn.me>
10 months ago[3.13] gh-124433: fix docs for `asyncio.Queue.task_done` (GH-128669) (#128671)
Miss Islington (bot) [Thu, 9 Jan 2025 12:30:55 +0000 (13:30 +0100)] 
[3.13] gh-124433: fix docs for `asyncio.Queue.task_done` (GH-128669) (#128671)

gh-124433: fix docs for `asyncio.Queue.task_done` (GH-128669)
(cherry picked from commit 4322a318ea98ceeb95d88b7ae6b5cfa3572d2069)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
10 months ago[3.13] gh-126137: improve docs for `loop.add_reader` and `loop.add_writer` (GH-128666...
Miss Islington (bot) [Thu, 9 Jan 2025 10:16:59 +0000 (11:16 +0100)] 
[3.13] gh-126137: improve docs for `loop.add_reader` and `loop.add_writer` (GH-128666) (#128667)

gh-126137: improve docs for `loop.add_reader` and `loop.add_writer` (GH-128666)
(cherry picked from commit b2adf556747d080f04b53ba4063b627c2dbe41d1)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
10 months ago[3.13] gh-79149: document reentrant safety of `loop.call_soon_threadsafe` (GH-128662...
Miss Islington (bot) [Thu, 9 Jan 2025 09:25:18 +0000 (10:25 +0100)] 
[3.13] gh-79149: document reentrant safety of `loop.call_soon_threadsafe` (GH-128662) (#128664)

gh-79149: document reentrant safety of `loop.call_soon_threadsafe` (GH-128662)
(cherry picked from commit 4685401845ba3e2ab8c9f4a9a10aa2969b11985f)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
10 months ago[3.13] gh-128552: fix refcycles in eager task creation (#128553) (#128585)
Thomas Grainger [Wed, 8 Jan 2025 12:46:43 +0000 (12:46 +0000)] 
[3.13] gh-128552: fix refcycles in eager task creation (#128553) (#128585)

gh-128552: fix refcycles in eager task creation (#128553)

(cherry picked from commit 61b9811ac6843e22b5896ef96030d421b79cd892)

10 months ago[3.13] gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` (GH-128616...
Miss Islington (bot) [Wed, 8 Jan 2025 12:32:32 +0000 (13:32 +0100)] 
[3.13] gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` (GH-128616) (#128625)

gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` (GH-128616)
(cherry picked from commit 74a517181a9bb65a1f6da149af7427a9fcb3add3)

Co-authored-by: sobolevn <mail@sobolevn.me>
10 months ago[3.13] gh-128613: Increase `typing.Concatenate` coverage (GH-128614) (#128623)
Miss Islington (bot) [Wed, 8 Jan 2025 12:26:01 +0000 (13:26 +0100)] 
[3.13] gh-128613: Increase `typing.Concatenate` coverage (GH-128614) (#128623)

Co-authored-by: sobolevn <mail@sobolevn.me>
10 months ago[3.13] gh-41872: Fix quick extraction of module docstrings from a file in pydoc ...
Miss Islington (bot) [Wed, 8 Jan 2025 12:21:15 +0000 (13:21 +0100)] 
[3.13] gh-41872: Fix quick extraction of module docstrings from a file in pydoc (GH-127520) (GH-128620)

It now supports docstrings with single quotes, escape sequences,
raw string literals, and other Python syntax.

(cherry picked from commit 474e419792484d1c16e7d9c99b7bf144136b9307)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-128617: Fix `test_typing.test_readonly_inheritance` (GH-128618) (#128622)
Miss Islington (bot) [Wed, 8 Jan 2025 11:43:16 +0000 (12:43 +0100)] 
[3.13] gh-128617: Fix `test_typing.test_readonly_inheritance` (GH-128618) (#128622)

gh-128617: Fix `test_typing.test_readonly_inheritance` (GH-128618)
(cherry picked from commit 971a52b5495e3d596e599faa1f31d4671897026d)

Co-authored-by: sobolevn <mail@sobolevn.me>
10 months ago[3.13] gh-109413: Add more type hints to `libregrtest` (GH-126352) (#126388)
Miss Islington (bot) [Wed, 8 Jan 2025 09:00:46 +0000 (10:00 +0100)] 
[3.13] gh-109413: Add more type hints to `libregrtest` (GH-126352) (#126388)

gh-109413: Add more type hints to `libregrtest` (GH-126352)
(cherry picked from commit bfc1d2504c183a9464e65c290e48516d176ea41f)

Co-authored-by: sobolevn <mail@sobolevn.me>
10 months ago[3.13] gh-87506: Document that json.load*() can raise UnicodeDecodeError (GH-127355...
Miss Islington (bot) [Wed, 8 Jan 2025 08:48:55 +0000 (09:48 +0100)] 
[3.13] gh-87506: Document that json.load*() can raise UnicodeDecodeError (GH-127355) (#128607)

(cherry picked from commit 15372d0112ac7fbbbe313725dd87d5a45af2f6d3)
(cherry picked from commit cdfb8bc93a4d8c06d2404ba2d243937ba209438c)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Erlend Aasland <erlend@python.org>
10 months ago[3.13] Docs: mark up json.load() using parameter list (GH-128488) (#128596)
Miss Islington (bot) [Tue, 7 Jan 2025 21:13:25 +0000 (22:13 +0100)] 
[3.13] Docs: mark up json.load() using parameter list (GH-128488) (#128596)

(cherry picked from commit a21e31ec5417374497b0f969ee2b3dc84a0944ff)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra...
Miss Islington (bot) [Tue, 7 Jan 2025 17:43:04 +0000 (18:43 +0100)] 
[3.13] gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (GH-127547) (#128528)

gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (GH-127547)

Up to this point message handling has been very strict with regards to content encoding values: mixed case was accepted, but trailing blanks or other text would cause decoding failure, even if the first token was a valid encoding.  By Postel's Rule we should go ahead and decode as long as we can recognize that first token.  We have not thought of any security or backward compatibility concerns with this fix.

This fix does introduce a new technique/pattern to the Message code: we look to see if the header has a 'cte' attribute, and if so we use that.  This effectively promotes the header API exposed by HeaderRegistry to an API that any header parser "should" support.  This seems like a reasonable thing to do.  It is not, however, a requirement, as the string value of the header is still used if there is no cte attribute.

The full fix (ignore any trailing blanks or blank-separated trailing text) applies only to the non-compat32 API.  compat32 is only fixed to the extent that it now ignores trailing spaces.  Note that the HeaderRegistry parsing still records a HeaderDefect if there is extra text.

(cherry picked from commit a62ba52f1439c1f878a3ff9b8544caf9aeef9b90)

Co-authored-by: RanKKI <hliu86.me@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors ...
Miss Islington (bot) [Tue, 7 Jan 2025 16:59:20 +0000 (17:59 +0100)] 
[3.13] gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors (gh-128511) (#128573)

gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors (gh-128511)

* Add `-skip-funcs` to BOLT options to fix computed goto errors

* NEWS

---------

(cherry picked from commit 24b147a19b360c49cb1740aa46211d342aaa071f)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
10 months ago[3.13] gh-108202: Document calendar.Calendar.firstweekday (GH-128566) (#128579)
Miss Islington (bot) [Tue, 7 Jan 2025 08:05:09 +0000 (09:05 +0100)] 
[3.13] gh-108202: Document calendar.Calendar.firstweekday (GH-128566) (#128579)

(cherry picked from commit b3cbd8f1b58b9e71df20bdda9960e7d3190c509e)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-128146: Exclude os/log.h import on older macOS versions. (GH-128165) (...
Miss Islington (bot) [Tue, 7 Jan 2025 05:36:00 +0000 (06:36 +0100)] 
[3.13] gh-128146: Exclude os/log.h import on older macOS versions. (GH-128165) (#128575)

gh-128146: Exclude os/log.h import on older macOS versions. (GH-128165)

Reworks the handling of Apple system log handling to account for older macOS
versions that don't provide os-log.
(cherry picked from commit e837a1f71e832ce8f551a6fac05e346f654457e0)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
10 months ago[3.13] gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirs...
Miss Islington (bot) [Mon, 6 Jan 2025 23:45:26 +0000 (00:45 +0100)] 
[3.13] gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirstweekday` (GH-127579) (#128564)

(cherry picked from commit 953b49e5468d02afaddadc2307f4763422078603)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
10 months ago[3.13] gh-90241: Clarify documentation for PyUnicode_FSConverter and PyUnicode_FSDeco...
Miss Islington (bot) [Mon, 6 Jan 2025 21:20:26 +0000 (22:20 +0100)] 
[3.13] gh-90241: Clarify documentation for PyUnicode_FSConverter and PyUnicode_FSDecoder (GH-128451) (GH-128542)

(cherry picked from commit 657d7b77e5c69967e9c0000b986fa4872d13958c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
10 months ago[3.13] gh-77214: Update outdated documentation for numeric PyArg_Parse formats (GH...
Miss Islington (bot) [Mon, 6 Jan 2025 10:56:14 +0000 (11:56 +0100)] 
[3.13] gh-77214: Update outdated documentation for numeric PyArg_Parse formats (GH-128454) (GH-128538)

(cherry picked from commit 8d15058d61681e98579cf3fbd3c6fd13b3df6a72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-114990: Add missing mixin methods in collections.abc's document (GH-114991...
Miss Islington (bot) [Mon, 6 Jan 2025 10:03:05 +0000 (11:03 +0100)] 
[3.13] gh-114990: Add missing mixin methods in collections.abc's document (GH-114991) (#128535)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
10 months ago[3.13] gh-128519: Align the docstring of untokenize() to match the docs (GH-128521...
Miss Islington (bot) [Mon, 6 Jan 2025 09:05:54 +0000 (10:05 +0100)] 
[3.13] gh-128519: Align the docstring of untokenize() to match the docs (GH-128521) (#128531)

(cherry picked from commit aef52ca8b334ff90e8032da39f4d06e7b5130eb9)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.13] Docs: fix `MessageDefect` references in email.policy docs (GH-128468) (#128526)
Miss Islington (bot) [Sun, 5 Jan 2025 22:04:39 +0000 (23:04 +0100)] 
[3.13] Docs: fix `MessageDefect` references in email.policy docs (GH-128468) (#128526)

(cherry picked from commit 3b231be8f000ae59faa04d5a2f1af11beafee866)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
10 months ago[3.13] gh-128504: Upgrade doctest to ubuntu-24.04 (GH-128506) (#128517)
Miss Islington (bot) [Sun, 5 Jan 2025 13:58:26 +0000 (14:58 +0100)] 
[3.13] gh-128504: Upgrade doctest to ubuntu-24.04 (GH-128506) (#128517)

gh-128504: Upgrade doctest to ubuntu-24.04 (GH-128506)
(cherry picked from commit 2228e92da31ca7344a163498f848973a1b356597)

Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455...
Miss Islington (bot) [Sun, 5 Jan 2025 09:22:34 +0000 (10:22 +0100)] 
[3.13] gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455) (gh-128512)

gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455)

Add `BOLT_COMMON_FLAGS` with `-update-debug-sections`

(cherry picked from commit b60044b838f3ea97395cd6f3adbd5330356fc273)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
10 months ago[3.13] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128500)
Miss Islington (bot) [Sat, 4 Jan 2025 23:01:03 +0000 (00:01 +0100)] 
[3.13] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128500)

(cherry picked from commit e8b6b39ff707378da654e15ccddde9c28cefdd30)

Co-authored-by: Beomsoo Kim <beoms424@gmail.com>
10 months ago[3.13] gh-127954: Document PyObject_DelItemString (GH-127986) (#128496)
Miss Islington (bot) [Sat, 4 Jan 2025 20:53:30 +0000 (21:53 +0100)] 
[3.13] gh-127954: Document PyObject_DelItemString (GH-127986) (#128496)

(cherry picked from commit 8ade15343d5daec3bf79ff7c47f03726fb2bcadf)

Co-authored-by: RUANG (James Roy) <rruuaanng@outlook.com>
10 months ago[3.13] Docs: amend json.dump() post gh-128482 (GH-128489) (#128493)
Miss Islington (bot) [Sat, 4 Jan 2025 19:03:01 +0000 (20:03 +0100)] 
[3.13] Docs: amend json.dump() post gh-128482 (GH-128489) (#128493)

(cherry picked from commit 87ee76062a7eb9c0fa2b94e36cfed21d86ae90ac)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-126719: Clarify math.fmod docs (GH-127741) (#128491)
Miss Islington (bot) [Sat, 4 Jan 2025 17:44:36 +0000 (18:44 +0100)] 
[3.13] gh-126719: Clarify math.fmod docs (GH-127741) (#128491)

(cherry picked from commit f28d471fbe99f9eaac05d60ed40da47b0b56fe86)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] Docs: mark up json.dump() using parameter list (GH-128482) (#128486)
Miss Islington (bot) [Sat, 4 Jan 2025 15:49:57 +0000 (16:49 +0100)] 
[3.13] Docs: mark up json.dump() using parameter list (GH-128482) (#128486)

(cherry picked from commit a0088b40bb212dc132e147d04f9287cabd72d163)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-128152: Argument Clinic: ignore pre-processor directives inside C comments...
Miss Islington (bot) [Sat, 4 Jan 2025 11:09:25 +0000 (12:09 +0100)] 
[3.13] gh-128152: Argument Clinic: ignore pre-processor directives inside C comments (GH-128464) (#128478)

(cherry picked from commit a4e773c540cfd3a9c2bb3b5033d2f79ef50962c8)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-128354: Consistently use LIBS over LDFLAGS in library build… (#128465)
Zanie Blue [Sat, 4 Jan 2025 00:50:13 +0000 (18:50 -0600)] 
[3.13] gh-128354: Consistently use LIBS over LDFLAGS in library build… (#128465)

(cherry picked from commit b75ed951d4de8ba85349d80c8e7f097b3cd6052f)

10 months ago[3.13] gh-128456: Use '-reorder-functions=cdsort' for BOLT builds (GH-128457) (#128461)
Miss Islington (bot) [Fri, 3 Jan 2025 23:49:21 +0000 (00:49 +0100)] 
[3.13] gh-128456: Use '-reorder-functions=cdsort' for BOLT builds (GH-128457) (#128461)

'hfsort+' is deprecated in favor of 'cdsort'.

(cherry picked from commit 4974bbdb290b61a2d8860de490fde1228c296753)

Co-authored-by: Zanie Blue <contact@zanie.dev>