]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 days ago[3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH...
Łukasz Langa [Fri, 31 Oct 2025 16:50:42 +0000 (17:50 +0100)] 
[3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH-140847)

(cherry picked from commit f029e8db626ddc6e3a3beea4eff511a71aaceb5c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 weeks agoPost 3.12.12
Thomas Wouters [Thu, 9 Oct 2025 11:46:51 +0000 (13:46 +0200)] 
Post 3.12.12

4 weeks agoPython 3.12.12 v3.12.12
Thomas Wouters [Thu, 9 Oct 2025 11:06:46 +0000 (13:06 +0200)] 
Python 3.12.12

4 weeks ago[3.12] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6...
Miss Islington (bot) [Thu, 9 Oct 2025 09:06:33 +0000 (11:06 +0200)] 
[3.12] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-139552) (GH-139764)

Currently, Fedora 42 uses a custom Linux Kernel 6.16.9 that backported an upstream change
from 6.17-rc7 [1,3] but not its subsequent fix [2]. Until the issue is resolved upstream,
we skip the failing test `test_socket.test_aead_aes_gcm` for kernel versions between 6.16
and 6.17.x.

[1] https://github.com/torvalds/linux/commit/1b34cbbf4f011a121ef7b2d7d6e6920a036d5285
[2] https://github.com/torvalds/linux/commit/d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb.
[3] https://gitlab.com/cki-project/kernel-ark/-/commit/45bcf60fe49b37daab1acee57b27211ad1574042
(cherry picked from commit 41712c4e095b2cc988febfe3887616c2779c6210)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.12] Remove Cirrus macOS runners from CI (GH-139799) (#139804)
Jacob Coffee [Wed, 8 Oct 2025 19:42:51 +0000 (15:42 -0400)] 
[3.12] Remove Cirrus macOS runners from CI (GH-139799) (#139804)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.12] gh-137638: Use macos-15-intel in GitHub Actions (GH-139154) (#139791)
Jacob Coffee [Wed, 8 Oct 2025 15:56:52 +0000 (11:56 -0400)] 
[3.12] gh-137638: Use macos-15-intel in GitHub Actions (GH-139154) (#139791)

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.12] gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (GH-13943...
Miss Islington (bot) [Wed, 8 Oct 2025 11:49:10 +0000 (13:49 +0200)] 
[3.12] gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (GH-139437) (GH-139694)

(cherry picked from commit 0e2cdd313ba5c67c5e2e21d993399b890e687c63)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks ago[3.12] gh-139700: Check consistency of the zip64 end of central directory record...
Miss Islington (bot) [Wed, 8 Oct 2025 11:46:28 +0000 (13:46 +0200)] 
[3.12] gh-139700: Check consistency of the zip64 end of central directory record (GH-139702) (GH-139708) (GH-139712)

(cherry picked from commit 333d4a6f4967d3ace91492a39ededbcf3faa76a6)

Support records with "zip64 extensible data" if there are no bytes
prepended to the ZIP file.
(cherry picked from commit 162997bb70e067668c039700141770687bc8f267)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.12] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat...
Sebastian Pipping [Tue, 7 Oct 2025 11:56:31 +0000 (13:56 +0200)] 
[3.12] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (GH-139403) (GH-139609)

Within libexpat, a parser created via `XML_ExternalEntityParserCreate`
is relying on its parent parser throughout its entire lifetime.
Prior to this fix, is was possible for the parent parser to be
garbage-collected too early.

(cherry picked from commit 6edb2ddb5f3695cf4938979d645f31d7fba43ec8)

4 weeks ago[3.12] gh-139436: Remove link to the PDF downloads (GH-139142) (GH-139428)
Miss Islington (bot) [Tue, 7 Oct 2025 11:48:45 +0000 (13:48 +0200)] 
[3.12] gh-139436: Remove link to the PDF downloads (GH-139142) (GH-139428)

(cherry picked from commit 6b5f15698a436591f7c305c576a2d366c38d9997)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks ago[3.12] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (GH-139662)
Sebastian Pipping [Tue, 7 Oct 2025 11:47:30 +0000 (13:47 +0200)] 
[3.12] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (GH-139662)

(cherry picked from commit 48d0d0dd9733eae4935f2ebd31bef786d8074fc8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.12] gh-138998: Upgrade vendored expat to 2.7.2 (GH-138999) (#139026)
Miss Islington (bot) [Mon, 6 Oct 2025 14:07:20 +0000 (16:07 +0200)] 
[3.12] gh-138998: Upgrade vendored expat to 2.7.2 (GH-138999) (#139026)

(cherry picked from commit 64c876dd6812ade19cb7a0c619111d30f0b2b860)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Stan Ulbrych <stanulbrych@gmail.com>
4 weeks ago[3.12] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (#137774)
Serhiy Storchaka [Mon, 6 Oct 2025 14:06:29 +0000 (17:06 +0300)] 
[3.12] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (#137774)

"] ]>" and "]] >" no longer end the CDATA section.

Make CDATA section parsing  context depending.
Add private method HTMLParser._set_support_cdata() to change the context.
If called with True, "<[CDATA[" starts a CDATA section which ends with "]]>".
If called with False, "<[CDATA[" starts a bogus comments which ends with ">".
(cherry picked from commit 0cbbfc462119b9107b373c24d2bda5a1271bed36)

6 weeks ago[3.12] gh-139330: Check expat version/checksum in SBOM with refresh.sh
Seth Michael Larson [Fri, 26 Sep 2025 17:23:04 +0000 (17:23 +0000)] 
[3.12] gh-139330: Check expat version/checksum in SBOM with refresh.sh

* [3.12] gh-139330: Check expat version/checksum in SBOM with refresh.sh

Check expat version/checksum in SBOM with refresh.sh
(cherry picked from commit 89b5571)

Co-authored-by: Seth Michael Larson <seth@python.org>
* 2.7.1

6 weeks ago[3.12] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743) (#138754)
Hugo van Kemenade [Fri, 26 Sep 2025 17:06:04 +0000 (20:06 +0300)] 
[3.12] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743) (#138754)

(cherry picked from commit 6e78a539bfb406238ec251ba01b7a1819e5c303e)

6 weeks ago[3.12] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#138741)
Hugo van Kemenade [Wed, 24 Sep 2025 11:27:40 +0000 (14:27 +0300)] 
[3.12] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#138741)

(cherry picked from commit 39bd7c3156b00dda85ea09dffdde3e3536f37a55)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 weeks ago[3.12] gh-136155: Use ``sphinxext-opengraph`` v0.12.0 (#136406)
Hugo van Kemenade [Mon, 8 Sep 2025 08:31:44 +0000 (11:31 +0300)] 
[3.12] gh-136155: Use ``sphinxext-opengraph`` v0.12.0 (#136406)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2 months ago[3.12] gh-131038: Use text=True in subprocesses in test_perf_profiler (#137117) ...
Hugo van Kemenade [Thu, 21 Aug 2025 14:18:35 +0000 (17:18 +0300)] 
[3.12] gh-131038: Use text=True in subprocesses in test_perf_profiler (#137117) (#138024)

gh-131038: Use text=True in subprocesses in test_perf_profiler (#137117)

(cherry picked from commit a852c7bdd48979218a0c756ff1a5586d91cff607)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 months ago[3.12] gh-130577: tarfile now validates archives to ensure member offsets are non...
Miss Islington (bot) [Mon, 4 Aug 2025 11:45:06 +0000 (13:45 +0200)] 
[3.12] gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (#137171)

(cherry picked from commit 7040aa54f14676938970e10c5f74ea93cd56aa38)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 months ago[3.12] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH...
Miss Islington (bot) [Tue, 22 Jul 2025 12:31:27 +0000 (14:31 +0200)] 
[3.12] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH-135310) (GH-136986)

(cherry picked from commit 4d02f31cdd45d81b95540d9076222b709d4f2335)

Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 months ago[3.12] gh-135661: Fix parsing attributes with whitespaces around the "=" separator...
Miss Islington (bot) [Tue, 22 Jul 2025 09:56:39 +0000 (11:56 +0200)] 
[3.12] gh-135661: Fix parsing attributes with whitespaces around the "=" separator in HTMLParser (GH-136908) (GH-136919)

This fixes a regression introduced in GH-135930.
(cherry picked from commit dee650189497735edbc08a54edabb5b06ef1bd09)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.12] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard...
Miss Islington (bot) [Sat, 12 Jul 2025 12:24:52 +0000 (14:24 +0200)] 
[3.12] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard (GH-135664) (GH-136273)

* "--!>" now ends the comment.
* "-- >" no longer ends the comment.
* Support abnormally ended empty comments "<-->" and "<--->".

---------
(cherry picked from commit 8ac7613dc8b8f82253d7c0e2b6ef6ed703a0a1ee)

Co-author: Kerim Kabirov <the.privat33r+gh@pm.me>

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
3 months ago[3.12] gh-128605: Add branch protections for x86_64 in asm_trampolineS (#128606)...
stratakis [Thu, 10 Jul 2025 10:22:14 +0000 (12:22 +0200)] 
[3.12] gh-128605: Add branch protections for x86_64 in asm_trampolineS (#128606) (#135094)

[3.12] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606)

Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S.

Required for mitigation against return-oriented programming (ROP)
and Call or Jump Oriented Programming (COP/JOP) attacks.

Manual application is required for the assembly files.

See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html

4 months ago[3.12] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135400)
Pablo Galindo Salgado [Tue, 8 Jul 2025 23:40:55 +0000 (00:40 +0100)] 
[3.12] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135400)

(cherry picked from commit ff2b5f40c2bf5c71255caac8a743c09ba0758c02)

4 months ago[3.12] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5...
Serhiy Storchaka [Fri, 4 Jul 2025 15:28:00 +0000 (18:28 +0300)] 
[3.12] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5 standard (GH-135930) (GH-136268)

* Whitespaces no longer accepted between `</` and the tag name.
  E.g. `</ script>` does not end the script section.

* Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized
  as whitespaces. The only whitespaces are `\t\n\r\f `.

* Null character (U+0000) no longer ends the tag name.

* Attributes and slashes after the tag name in end tags are now ignored,
  instead of terminating after the first `>` in quoted attribute value.
  E.g. `</script/foo=">"/>`.

* Multiple slashes and whitespaces between the last attribute and closing `>`
  are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`.

* Multiple `=` between attribute name and value are no longer collapsed.
  E.g. `<a foo==bar>` produces attribute "foo" with value "=bar".

* Whitespaces between the `=` separator and attribute name or value are no
  longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and
  "=bar", both with value None; `<a foo= bar>` produces two attributes:
  "foo" with value "" and "bar" with value None.

* Fix data loss after unclosed script or style tag (gh-86155).

Also backport test.support.subTests() (gh-135120).

---------
(cherry picked from commit 0243f97cbadec8d985e63b1daec5d1cbc850cae3)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Waylan Limberg <waylan.limberg@icloud.com>
4 months ago[3.12] gh-135462: Fix quadratic complexity in processing special input in HTMLParser...
Serhiy Storchaka [Thu, 3 Jul 2025 22:12:10 +0000 (01:12 +0300)] 
[3.12] gh-135462: Fix quadratic complexity in processing special input in HTMLParser (GH-135464) (GH-135483)

End-of-file errors are now handled according to the HTML5 specs --
comments and declarations are automatically closed, tags are ignored.
(cherry picked from commit 6eb6c5dbfb528bd07d77b60fd71fd05d81d45c41)

4 months ago[3.12] gh-132415: Update vendored setuptools in ``Lib/test/wheeldata` (GH-132887...
Łukasz Langa [Wed, 11 Jun 2025 15:28:51 +0000 (17:28 +0200)] 
[3.12] gh-132415: Update vendored setuptools in ``Lib/test/wheeldata` (GH-132887) (GH-135393)

(cherry picked from commit c9f3f5b4ed52d7bed6073ffa39717ece47202558)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.12] gh-132415: Use shutil.which() in missing_compiler_executable() (GH-132906...
Miss Islington (bot) [Wed, 11 Jun 2025 15:00:01 +0000 (17:00 +0200)] 
[3.12] gh-132415: Use shutil.which() in missing_compiler_executable() (GH-132906) (GH-135392)

Replace deprecated distutils.spawn.find_executable() with
shutil.which() in missing_compiler_executable() of test.support.
(cherry picked from commit de6482eda3a46cc9c9a03fb9ba57295ab99b4722)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months agoPost 3.12.11
Thomas Wouters [Tue, 3 Jun 2025 18:31:47 +0000 (20:31 +0200)] 
Post 3.12.11

5 months agoPython 3.12.11 v3.12.11
Thomas Wouters [Tue, 3 Jun 2025 15:41:33 +0000 (17:41 +0200)] 
Python 3.12.11

5 months ago[3.12] gh-135034: Remove test_realpath_permission (GH-135093)
Petr Viktorin [Tue, 3 Jun 2025 14:58:06 +0000 (16:58 +0200)] 
[3.12] gh-135034: Remove test_realpath_permission (GH-135093)

The test was added in gh-110298, with a fix that was never backported
to 3.12 and below.
It was most likely skipped in the GHA run.

5 months ago[3.12] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH...
Miss Islington (bot) [Tue, 3 Jun 2025 14:25:28 +0000 (16:25 +0200)] 
[3.12] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836) (GH-134847)

(cherry picked from commit d83576bf48d07d5e29d5d171c4e25afb048622aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.12] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH...
Miss Islington (bot) [Tue, 3 Jun 2025 14:08:03 +0000 (16:08 +0200)] 
[3.12] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH-123419) (GH-135086)

Fix functionality that was broken with better textual representation for IPv4-mapped addresses (gh-87799)
(cherry picked from commit 77a2fb4bf1a1b160d6ce105508288fc77f636943)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.12] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict...
T. Wouters [Tue, 3 Jun 2025 14:00:21 +0000 (16:00 +0200)] 
[3.12] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (GH-135037) (GH-135066)

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.

(cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Signed-off-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.12] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses...
Miss Islington (bot) [Tue, 3 Jun 2025 13:45:32 +0000 (15:45 +0200)] 
[3.12] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135081)

Represent IPv4-mapped IPv6 address as x:x:x:x:x:x:d.d.d.d,
where the 'x's are the hexadecimal values
of the six high-order 16-bit pieces of the address,
and the 'd's are the decimal values
of the four low-order 8-bit pieces of the address
(standard IPv4 representation).

(cherry picked from commit f22bf8e3cf899896cf587099d29290cb43aa9724)

Co-authored-by: opavliuk <40970635+opavlyuk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 months ago[3.12] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) ...
Miss Islington (bot) [Mon, 26 May 2025 03:34:44 +0000 (05:34 +0200)] 
[3.12] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) (#134612)

gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841)

GH-128840: Limit the number of parts in IPv6 address parsing
Limit length of IP address string to 39

---------
(cherry picked from commit 47f1161d3a2bec52b5b5e952150141709c247da2)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 months ago[3.12] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)...
Miss Islington (bot) [Mon, 26 May 2025 03:34:22 +0000 (05:34 +0200)] 
[3.12] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063) (#134478)

gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)
(cherry picked from commit f3fc0c16e08b317cb201cf1073e934e6909f1251)

gh-134062: Fix hash collisions in IPv4Network and IPv6Network
gh-134062: Add hash collision regression test

Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
5 months ago[3.12] gh-133767: Fix use-after-free in the unicode-escape decoder with an error...
Serhiy Storchaka [Mon, 26 May 2025 03:33:22 +0000 (06:33 +0300)] 
[3.12] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133944) (#134337)

If the error handler is used, a new bytes object is created to set as
the object attribute of UnicodeDecodeError, and that bytes object then
replaces the original data. A pointer to the decoded data will became invalid
after destroying that temporary bytes object. So we need other way to return
the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal().

_PyBytes_DecodeEscape() does not have such issue, because it does not
use the error handlers registry, but it should be changed for compatibility
with _PyUnicode_DecodeUnicodeEscapeInternal().
(cherry picked from commit 9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e)
(cherry picked from commit 6279eb8c076d89d3739a6edb393e43c7929b429d)

5 months ago[3.12] gh-133410: Fix PR detection in build workflow (GH-133671) (#134057)
Miss Islington (bot) [Thu, 15 May 2025 14:04:54 +0000 (16:04 +0200)] 
[3.12] gh-133410: Fix PR detection in build workflow (GH-133671) (#134057)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 months ago[3.12] Docs: remove link elements in builders other than HTML (GH-133720) (#134007)
Miss Islington (bot) [Wed, 14 May 2025 15:23:12 +0000 (17:23 +0200)] 
[3.12] Docs: remove link elements in builders other than HTML (GH-133720) (#134007)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
6 months ago[3.12] GH-133410: Use commit hashes for change detection (gh-133416) (#133426)
Miss Islington (bot) [Mon, 5 May 2025 23:48:34 +0000 (01:48 +0200)] 
[3.12] GH-133410: Use commit hashes for change detection (gh-133416) (#133426)

GH-133410: Use commit hashes for change detection (gh-133416)
(cherry picked from commit d530e74e444fc483f6d2077f701160e55d3003d8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.12] gh-132553: Build the perf tool without buildid cache (GH-132663) (#132718)
Victor Stinner [Fri, 25 Apr 2025 01:26:30 +0000 (03:26 +0200)] 
[3.12] gh-132553: Build the perf tool without buildid cache (GH-132663) (#132718)

gh-132553: Build the perf tool without buildid cache (GH-132663)

(cherry picked from commit e01e5829020e517eb68a47da4dd65926a9d144de)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
6 months ago[3.12] Docs: Migrate entirely to PSF hosted plausible for analytics (GH-132648) ...
Miss Islington (bot) [Fri, 18 Apr 2025 04:21:14 +0000 (06:21 +0200)] 
[3.12] Docs: Migrate entirely to PSF hosted plausible for analytics (GH-132648) (#132664)

Docs: Migrate entirely to PSF hosted plausible for analytics (GH-132648)
(cherry picked from commit 1d529cbc892b824b387d672899265ed4258b2222)

Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
7 months agoPost 3.12.10
Thomas Wouters [Tue, 8 Apr 2025 14:17:38 +0000 (16:17 +0200)] 
Post 3.12.10

7 months agoPython 3.12.10 v3.12.10
Thomas Wouters [Tue, 8 Apr 2025 11:35:30 +0000 (13:35 +0200)] 
Python 3.12.10

7 months ago[3.12] gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254) ...
Miss Islington (bot) [Tue, 8 Apr 2025 11:13:09 +0000 (13:13 +0200)] 
[3.12] gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254) (GH-132264)

(cherry picked from commit 0f04f2456a2ff996cc670342a287928ab5f9b706)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months ago[3.12] gh-101137: Add `text/x-rst` to `mimetypes` (GH-118593) (GH-118599)
sobolevn [Tue, 8 Apr 2025 10:40:41 +0000 (13:40 +0300)] 
[3.12] gh-101137: Add `text/x-rst` to `mimetypes` (GH-118593) (GH-118599)

7 months ago[3.12] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119286)
Miss Islington (bot) [Tue, 8 Apr 2025 10:32:06 +0000 (12:32 +0200)] 
[3.12] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119286)

(cherry picked from commit 172690227e771c2e8ab137815073e3a172c08dec)

Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
7 months ago[3.12] gh-130775: Allow negative locations in `ast` (GH-130795) (#132260)
sobolevn [Tue, 8 Apr 2025 10:19:23 +0000 (13:19 +0300)] 
[3.12] gh-130775: Allow negative locations in `ast` (GH-130795) (#132260)

(cherry picked from commit bc5233b6a5cdd8f77a4737ce317f94110869c082)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
7 months ago[3.12] gh-130164: Fix inspect.Signature.bind() handling of positional-only args witho...
Miss Islington (bot) [Tue, 8 Apr 2025 09:39:45 +0000 (11:39 +0200)] 
[3.12] gh-130164: Fix inspect.Signature.bind() handling of positional-only args without defaults (GH-130192) (GH-132259)

Follow-up to 9c15202.
(cherry picked from commit dab456dcefd886bde44eb204dc6f1b2f14de0e9d)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
7 months ago[3.12] gh-132021: Add bool type to the list of allowed JSON key types (GH-132048...
Miss Islington (bot) [Tue, 8 Apr 2025 08:43:45 +0000 (10:43 +0200)] 
[3.12] gh-132021: Add bool type to the list of allowed JSON key types (GH-132048) (#132256)

gh-132021: Add bool type to the list of allowed JSON key types (GH-132048)
(cherry picked from commit 403886c28ddb350bbcaea478f8d754ed14e10337)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
7 months ago[3.12] gh-116608: undeprecate functional importlib.resources API (#132206)
Thomas Grainger [Tue, 8 Apr 2025 08:36:29 +0000 (09:36 +0100)] 
[3.12] gh-116608: undeprecate functional importlib.resources API (#132206)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
7 months ago[3.12] gh-115684: Clarify datetime `replace` documentation (GH-116519) (#131694)
David Lowry-Duda [Tue, 8 Apr 2025 08:30:12 +0000 (04:30 -0400)] 
[3.12] gh-115684: Clarify datetime `replace` documentation (GH-116519) (#131694)

* Clarify datetime `replace` documentation

In GH-115684, HopedForLuck noted that `datetime.date.replace()`
documentation was confusing because it looked like it would be changing
immutable objects.

This documentation change specifies that the `replace()` methods in
`datetime` return new objects. This uses similar wording to the
documentation for `datetime.combine()`, which specifies that a new
datetime is returned. This is also similar to wording for
`string.replace()`, except `string.replace()` emphasizes that a "copy"
is returned.

Resolves GH-115684.

* Include reviewer comments

Thanks Privat33r-dev for the comments!

---------
(cherry picked from commit d2d886215cf694d5f3e7f0cbd76507a96bac322b)

Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
7 months ago[3.12] Add psfhosted Plausible instance to analytics (GH-132252) (#132254)
Miss Islington (bot) [Tue, 8 Apr 2025 07:53:44 +0000 (09:53 +0200)] 
[3.12] Add psfhosted Plausible instance to analytics (GH-132252) (#132254)

Add psfhosted Plausible instance to analytics (GH-132252)
(cherry picked from commit 40844164b1d1d0f072990ff94202c348771676d6)

Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
7 months ago[3.12] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132237)
Miss Islington (bot) [Mon, 7 Apr 2025 21:21:02 +0000 (23:21 +0200)] 
[3.12] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132237)

* gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192)
(cherry picked from commit c0de6500249469e6fc5b458d6afb6bad1b6755cd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
* make regen-sbom

---------

Co-authored-by: Gregory P. Smith <greg@krypto.org>
7 months ago[3.12] gh-130521: Add Open Graph meta tags to template pages (GH-130523) (#132238)
Miss Islington (bot) [Mon, 7 Apr 2025 21:06:29 +0000 (23:06 +0200)] 
[3.12] gh-130521: Add Open Graph meta tags to template pages (GH-130523) (#132238)

gh-130521: Add Open Graph meta tags to template pages (GH-130523)
(cherry picked from commit f5639d87f59043d3075dbd3d9075f30e872dd91a)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7 months ago[3.12] Docs HTML: Remove self-closing tags (GH-132220) (#132229)
Hugo van Kemenade [Mon, 7 Apr 2025 21:06:08 +0000 (00:06 +0300)] 
[3.12] Docs HTML: Remove self-closing tags (GH-132220) (#132229)

(cherry picked from commit ce724571b35f4e79fff1c862fcd9afa4c26b605f)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
7 months ago[3.12] gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-13222...
Miss Islington (bot) [Mon, 7 Apr 2025 14:54:53 +0000 (16:54 +0200)] 
[3.12] gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-132222) (#132227)

gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-132222)
(cherry picked from commit 8b62374b344f5da852bed9f16619736d4d43936b)

Co-authored-by: sobolevn <mail@sobolevn.me>
7 months ago[3.12] gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) (GH-132216)
Miss Islington (bot) [Mon, 7 Apr 2025 11:52:22 +0000 (13:52 +0200)] 
[3.12] gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) (GH-132216)

(cherry picked from commit ad6a032cebf59d1668caa7e726aa5da72e1cbb5c)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
7 months ago[3.12] gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201) (...
Miss Islington (bot) [Mon, 7 Apr 2025 08:19:54 +0000 (10:19 +0200)] 
[3.12] gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201) (#132208)

gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201)
(cherry picked from commit af8d1b95377917036aaedf18b9cc047d8877259c)

Co-authored-by: Sonny Ding <93831983+sonnyding1@users.noreply.github.com>
7 months ago[3.12] gh-131912: Improve description of grouping options in the format specification...
Miss Islington (bot) [Mon, 7 Apr 2025 07:26:34 +0000 (09:26 +0200)] 
[3.12] gh-131912: Improve description of grouping options in the format specification docs (GH-132030) (#132203)

(cherry picked from commit 06a110f5227ba9d52f6205fde55924a14cab36ff)

Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com>
7 months ago[3.12] gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (GH-132190)
Miss Islington (bot) [Mon, 7 Apr 2025 06:01:25 +0000 (08:01 +0200)] 
[3.12] gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (GH-132190)

(cherry picked from commit c55c0201fc09336f193cfc9992dc5e506fd7172d)
Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.12] gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)
Miss Islington (bot) [Mon, 7 Apr 2025 05:41:25 +0000 (07:41 +0200)] 
[3.12] gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)

Patch by Bénédikt Tran.
(cherry picked from commit ce49022b07928d58d1aecfbcd8ea1bf1055065ed)
Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.12] gh-91132: Update macOS installer to use ncurses 6.5. (GH-129990)
Miss Islington (bot) [Mon, 7 Apr 2025 03:46:16 +0000 (05:46 +0200)] 
[3.12] gh-91132: Update macOS installer to use ncurses 6.5. (GH-129990)

(cherry picked from commit 0dbe543d70d7f014d4c1e0308f04c1d91bd815ca)

Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.12] Docs: Add a single table summary for ``cmath`` (GH-131887) (#132180)
Miss Islington (bot) [Sun, 6 Apr 2025 23:43:06 +0000 (01:43 +0200)] 
[3.12] Docs: Add a single table summary for ``cmath`` (GH-131887) (#132180)

Docs: Add a single table summary for ``cmath`` (GH-131887)
(cherry picked from commit 6eaa4aeef25f77a31768d8ba5a03f614766aba95)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
7 months ago[3.12] GH-107674: Avoid allocating boxed ints for `sys.settrace` line events (GH...
Miss Islington (bot) [Sun, 6 Apr 2025 19:48:53 +0000 (21:48 +0200)] 
[3.12] GH-107674: Avoid allocating boxed ints for `sys.settrace` line events (GH-107780) (#107841)

GH-107674: Avoid allocating boxed ints for `sys.settrace` line events (GH-107780)
(cherry picked from commit 37d8b904f8b5b660f556597b21c0933b841d18de)

Co-authored-by: Mark Shannon <mark@hotpy.org>
7 months ago[3.12] Docs: Replace dead hyperlink for CGI environment variables (GH-132137) (#132151)
Miss Islington (bot) [Sun, 6 Apr 2025 08:29:09 +0000 (10:29 +0200)] 
[3.12] Docs: Replace dead hyperlink for CGI environment variables (GH-132137) (#132151)

Docs: Replace dead hyperlink for CGI environment variables (GH-132137)
(cherry picked from commit 0a10b45dd16a8c971363d917b9ebd1266e65f710)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
7 months ago[3.12] gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135...
Miss Islington (bot) [Sun, 6 Apr 2025 04:42:06 +0000 (06:42 +0200)] 
[3.12] gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135) (#132145)

gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135)
(cherry picked from commit 86804003ed70acbf8a2531c6784895d750c50456)

Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
7 months ago[3.12] Fix numbered list syntax in programming.rst (GH-130158) (#132141)
Miss Islington (bot) [Sat, 5 Apr 2025 19:27:05 +0000 (21:27 +0200)] 
[3.12] Fix numbered list syntax in programming.rst (GH-130158) (#132141)

Fix numbered list syntax in programming.rst (GH-130158)
(cherry picked from commit 376631829aab72e320e19102fc55cbca5af8c733)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
7 months ago[3.12] gh-131015: Add test for bytes formatting errors (#131881) (#132114)
Bénédikt Tran [Sat, 5 Apr 2025 09:40:48 +0000 (11:40 +0200)] 
[3.12] gh-131015: Add test for bytes formatting errors (#131881) (#132114)

* gh-131015: Add test for bytes formatting errors (#131881)

Co-authored-by: Ageev Maxim <maksim170901@gmail.com>
(cherry picked from commit 05557788f3c284ede73e6f94810ec796bb9d3721)

7 months ago[3.12] Docs: document `plistlib.InvalidFileException` (GH-132069) (#132117)
Miss Islington (bot) [Sat, 5 Apr 2025 08:53:06 +0000 (10:53 +0200)] 
[3.12] Docs: document `plistlib.InvalidFileException` (GH-132069) (#132117)

Docs: document `plistlib.InvalidFileException` (GH-132069)
(cherry picked from commit 99e9798d612222785db427eb295c847147fe5e78)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
7 months ago[3.12] Fix typo in `template_replace()` test helper docstring (GH-132094) (#132096)
Miss Islington (bot) [Fri, 4 Apr 2025 18:04:01 +0000 (20:04 +0200)] 
[3.12] Fix typo in `template_replace()` test helper docstring (GH-132094) (#132096)

Fix typo in `template_replace()` test helper docstring (GH-132094)
(cherry picked from commit ac3a7bfeccb752a59d88861e45b454db360aa69d)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
7 months ago[3.12] gh-128632: fix segfault on nested __classdict__ type param (GH… (#132090)
Tomasz Pytel [Fri, 4 Apr 2025 15:48:57 +0000 (11:48 -0400)] 
[3.12] gh-128632: fix segfault on nested __classdict__ type param (GH… (#132090)

(cherry picked from commit 891c61c1fa480928dd60cce8bbc8764630c95025)

Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
7 months ago[3.12] gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911) (#132080)
Miss Islington (bot) [Fri, 4 Apr 2025 14:49:48 +0000 (16:49 +0200)] 
[3.12] gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911) (#132080)

gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911)
(cherry picked from commit a126cefc176a7ddbd1a09ce560195f6fd81a5c92)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
7 months ago[3.12] gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext...
Miss Islington (bot) [Fri, 4 Apr 2025 14:49:36 +0000 (16:49 +0200)] 
[3.12] gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext` (GH-131909) (#132078)

gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext` (GH-131909)
(cherry picked from commit 16a6270aa61c86c430a308c0f766a69a88c9a3a5)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
7 months ago[3.12] gh-130655: Add tests for `gettext.find()` (GH-130691) (#132083)
Miss Islington (bot) [Fri, 4 Apr 2025 14:39:22 +0000 (16:39 +0200)] 
[3.12] gh-130655: Add tests for `gettext.find()` (GH-130691) (#132083)

gh-130655: Add tests for `gettext.find()` (GH-130691)

(cherry picked from commit 3118693a1a3db0da96c565a2de015a806c892625)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
7 months ago[3.12] gh-132075: Fix possible use of sockaddr structures with uninitialized members...
Miss Islington (bot) [Fri, 4 Apr 2025 14:29:12 +0000 (16:29 +0200)] 
[3.12] gh-132075: Fix possible use of sockaddr structures with uninitialized members (GH-132076) (GH-132087)

Now all structure members are initialized with zeroes by default.
(cherry picked from commit 345baa77ba2ce3b8ea8f2fad84754e5cc0b10938)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months agogh-131423: Update OpenSSL build tag to 3.0.16.2 to fix ARM64 crash (GH-132051)
Steve Dower [Thu, 3 Apr 2025 18:04:29 +0000 (19:04 +0100)] 
gh-131423: Update OpenSSL build tag to 3.0.16.2 to fix ARM64 crash (GH-132051)

Backported from 24decb05ddda445d96f45e2cd0b39497318c98d4

7 months ago[3.12] gh-130197: pygettext: Test the --escape option (GH-131902) (GH-132033)
Tomas R. [Wed, 2 Apr 2025 20:29:02 +0000 (22:29 +0200)] 
[3.12] gh-130197: pygettext: Test the --escape option (GH-131902) (GH-132033)

(cherry picked from commit 87d9983994e9a423e9e0050b1bbee52ebaf84367)

7 months ago[3.12] gh-89039: Call subclass constructors in datetime.*.replace (GH-114780) (GH...
Serhiy Storchaka [Wed, 2 Apr 2025 17:35:16 +0000 (20:35 +0300)] 
[3.12] gh-89039: Call subclass constructors in datetime.*.replace (GH-114780) (GH-131239)

When replace() method is called on a subclass of datetime, date or time,
properly call derived constructor. Previously, only the base class's
constructor was called.

Also, make sure to pass non-zero fold values when creating subclasses in
various methods. Previously, fold was silently ignored.
(cherry picked from commit 46190d9ea8a878a03d95b4e1bdcdc9ed576cf3fa)

Co-authored-by: Eugene Toder <eltoder@users.noreply.github.com>
7 months ago[3.12] gh-131888: fix ResourceWarning in test_ftplib (GH-131889) (#132010)
Miss Islington (bot) [Wed, 2 Apr 2025 12:46:40 +0000 (14:46 +0200)] 
[3.12] gh-131888: fix ResourceWarning in test_ftplib (GH-131889) (#132010)

gh-131888: fix ResourceWarning in test_ftplib (GH-131889)
(cherry picked from commit b0f77c4d250789fd1deaab4912919e2e6b89e583)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
7 months ago[3.12] gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003...
Miss Islington (bot) [Wed, 2 Apr 2025 12:05:30 +0000 (14:05 +0200)] 
[3.12] gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003) (#132008)

gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003)
(cherry picked from commit ab2a3dda1d3b6668162a847bf5b6aca2855a3416)

Co-authored-by: sobolevn <mail@sobolevn.me>
7 months ago[3.12] gh-111178: Fix getsockaddrarg() undefined behavior (GH-131668) (GH-131977...
Miss Islington (bot) [Tue, 1 Apr 2025 14:56:56 +0000 (16:56 +0200)] 
[3.12] gh-111178: Fix getsockaddrarg() undefined behavior (GH-131668) (GH-131977) (#131979)

[3.13] gh-111178: Fix getsockaddrarg() undefined behavior (GH-131668) (GH-131977)

gh-111178: Fix getsockaddrarg() undefined behavior (GH-131668)

Don't pass direct references to sockaddr members since their type may
not match PyArg_ParseTuple() types. Instead, use temporary 'int' and
'unsigned char' variables, and update sockaddr members afterwards.

On FreeBSD, treat BTPROTO_HCI node name as a bytes string,
not as an integer.
(cherry picked from commit c318a03b17c3e58e9c46beb84ab7070b7baa303b)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 8cd29c2b533e5a1a262238695d05f2a7c44d6455)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 months ago[3.12] gh-131736: only apply `security_level` workaround in `test_ssl` for security...
Miss Islington (bot) [Tue, 1 Apr 2025 08:16:34 +0000 (10:16 +0200)] 
[3.12] gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739) (#131966)

gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739)
(cherry picked from commit 3b3720f1a26ab34377542b48eb6a6565f78ff892)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
7 months ago[3.12] Minor improvements to the programming FAQ (GH-127261) (#131965)
Miss Islington (bot) [Tue, 1 Apr 2025 07:26:36 +0000 (09:26 +0200)] 
[3.12] Minor improvements to the programming FAQ (GH-127261) (#131965)

Minor improvements to the programming FAQ (GH-127261)
(cherry picked from commit 23a658b9af410b72beeb28ba4ace2d83896c5631)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
7 months ago[3.12] gh-125957: sync argument naming in sphinx docs of the cmath and help() (GH...
Miss Islington (bot) [Tue, 1 Apr 2025 07:23:33 +0000 (09:23 +0200)] 
[3.12] gh-125957: sync argument naming in sphinx docs of the cmath and help() (GH-125958) (#131963)

gh-125957: sync argument naming in sphinx docs of the cmath and help() (GH-125958)
(cherry picked from commit 0a3eb8855ccea52c618db1cf09840c6368a3745f)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.12] gh-129917: Update installers to use SQLite 3.49.1 (#131025) (#131958)
Erlend E. Aasland [Mon, 31 Mar 2025 21:39:06 +0000 (23:39 +0200)] 
[3.12] gh-129917: Update installers to use SQLite 3.49.1 (#131025) (#131958)

(cherry picked from commit 45a3ab5a81769eadd94da3e26eb9bb2f3ae80fb1)

Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.12] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH...
Miss Islington (bot) [Mon, 31 Mar 2025 18:29:04 +0000 (20:29 +0200)] 
[3.12] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866) (#131951)

gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866)

When using --with-dtrace the resulting object file could be missing
specific CFLAGS exported by the build system due to the systemtap
script using specific defaults.

Exporting the CC and CFLAGS variables before the dtrace invocation
allows us to properly apply CFLAGS exported by the build system
even when cross-compiling.

The fix does not affect the dtrace invocation on Solaris/macOS.
(cherry picked from commit 0cd4befb02df07c0b320cd6246227c13e57b2efb)

Co-authored-by: stratakis <cstratak@redhat.com>
7 months ago[3.12] gh-126033: fix UAF in `xml.etree.ElementTree.Element.remove` when concurrent...
Miss Islington (bot) [Mon, 31 Mar 2025 12:50:13 +0000 (14:50 +0200)] 
[3.12] gh-126033: fix UAF in `xml.etree.ElementTree.Element.remove` when concurrent mutations happen (GH-126124) (#131930)

gh-126033: fix UAF in `xml.etree.ElementTree.Element.remove` when concurrent mutations happen (GH-126124)
(cherry picked from commit bab1398a47f6d0cfc1be70497f306874c749ef7c)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.12] gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when concurrent...
Bénédikt Tran [Mon, 31 Mar 2025 12:47:22 +0000 (14:47 +0200)] 
[3.12] gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when concurrent mutations happen (#127964) (#131932)

gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when concurrent mutations happen (#127964)

We fix a use-after-free in the `find`, `findtext` and `findall` methods of `xml.etree.ElementTree.Element`
objects that can be triggered when the tag to find implements an `__eq__` method that mutates the
element being queried.

(cherry picked from commit c57623c221d46daeaedfbf2b32d041fde0c882de)

7 months ago[3.12] gh-131885: Document that `dict.setdefault` and `dict.get` take no keyword...
Miss Islington (bot) [Sun, 30 Mar 2025 09:29:49 +0000 (11:29 +0200)] 
[3.12] gh-131885: Document that `dict.setdefault` and `dict.get` take no keyword arguments (GH-128208) (#131894)

gh-131885: Document that `dict.setdefault` and `dict.get` take no keyword arguments (GH-128208)
(cherry picked from commit edfbd8c062285e83dc5f596288df2a762e68bcdc)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
7 months ago[3.12] gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server...
Miss Islington (bot) [Sun, 30 Mar 2025 08:28:26 +0000 (10:28 +0200)] 
[3.12] gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server` (GH-129996) (#131891)

gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server` (GH-129996)
(cherry picked from commit 044a1e13d5cfc91b0a8774e936877e91cbac3a16)

Co-authored-by: Alexander Ershov <150328014+AEErshov@users.noreply.github.com>
7 months ago[3.12] gh-131050: skip `test_dh_params` when TLS library lacks FFDHE ciphersuites...
Miss Islington (bot) [Sat, 29 Mar 2025 10:51:11 +0000 (11:51 +0100)] 
[3.12] gh-131050: skip `test_dh_params` when TLS library lacks FFDHE ciphersuites (GH-131051) (#131875)

gh-131050: skip `test_dh_params` when TLS library lacks FFDHE ciphersuites (GH-131051)
(cherry picked from commit be2d2181e62cd138b0cdf80ebc0dd4058187c52a)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.12] gh-127541: Update os.walk example (GH-127765) (#131873)
Miss Islington (bot) [Sat, 29 Mar 2025 10:34:35 +0000 (11:34 +0100)] 
[3.12] gh-127541: Update os.walk example (GH-127765) (#131873)

gh-127541: Update os.walk example (GH-127765)

Update os.walk example to be more modern, skip `__pycache__` dirs rather than `CVS` dirs.
(cherry picked from commit a5949986d631391d37b1b329ad8badcf2000f9a9)

Co-authored-by: Totosuki <116938397+totosuki@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months agogh-131423: Update to OpenSSL 3.0.16. (GH-131839)
Steve Dower [Fri, 28 Mar 2025 15:29:20 +0000 (15:29 +0000)] 
gh-131423: Update to OpenSSL 3.0.16. (GH-131839)

The bin tag is 3.0.16.1 because we rebuilt without uplink support to fix gh-131804.
This PR also prevents making calls that are now unsafe without uplink, and updates
the tests to property interpret these failures as unsupported.

7 months ago[3.12] gh-131807: fix ResourceWarning in test_ucn.py (GH-131808) (#131846)
Miss Islington (bot) [Fri, 28 Mar 2025 15:12:59 +0000 (16:12 +0100)] 
[3.12] gh-131807: fix ResourceWarning in test_ucn.py (GH-131808) (#131846)

gh-131807: fix ResourceWarning in test_ucn.py (GH-131808)
(cherry picked from commit adb67ed7e465410829ac0b1f903ec5678e0e51cc)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
7 months ago[3.12] gh-127949: fix resource warnings in `test_tasks.py` (GH-128172) (#131806)
Miss Islington (bot) [Fri, 28 Mar 2025 14:25:39 +0000 (15:25 +0100)] 
[3.12] gh-127949: fix resource warnings in `test_tasks.py` (GH-128172) (#131806)

* gh-127949: fix resource warnings in `test_tasks.py` (GH-128172)
(cherry picked from commit b66a4ad9fc32b63da2ba10db24cbc8f4e29f781a)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
7 months ago[3.12] gh-131740: Update PyUnstable_GC_VisitObjects to traverse perm gen (#131828)
Donghee Na [Fri, 28 Mar 2025 13:55:58 +0000 (22:55 +0900)] 
[3.12] gh-131740: Update PyUnstable_GC_VisitObjects to traverse perm gen (#131828)

7 months ago[3.12] gh-128446: Run Windows CI tests on each commit (GH-131702) (#131706)
Miss Islington (bot) [Fri, 28 Mar 2025 11:08:47 +0000 (12:08 +0100)] 
[3.12] gh-128446: Run Windows CI tests on each commit (GH-131702) (#131706)

gh-128446: Run Windows CI tests on each commit (GH-131702)
(cherry picked from commit 7d9442f0d55a7169940b9371d6e58a7c2ec1fa8a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
7 months ago[3.12] gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (#131823)
Miss Islington (bot) [Fri, 28 Mar 2025 08:09:03 +0000 (09:09 +0100)] 
[3.12] gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (#131823)

gh-131818: Add imply `-P` in `-I`'s help message (GH-131819)
(cherry picked from commit 8bd88e2827b2a887c2ea8e5ed0c0575704bfacdf)

Co-authored-by: Hang <bebound@gmail.com>