]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 days ago[3.11] gh-90953: Don't use deprecated AST nodes in clinic.py (GH-104322) (GH-140856)
Miss Islington (bot) [Fri, 31 Oct 2025 16:57:52 +0000 (17:57 +0100)] 
[3.11] gh-90953: Don't use deprecated AST nodes in clinic.py (GH-104322) (GH-140856)

(cherry picked from commit fe694a6db620062f467469bd2bb987315d72fd62)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
7 days ago[3.11] gh-120384: gh-120298: Fix array-out-of-bounds & use after free `list` (GH...
Gregory P. Smith [Fri, 31 Oct 2025 14:19:07 +0000 (07:19 -0700)] 
[3.11] gh-120384: gh-120298: Fix array-out-of-bounds & use after free `list` (GH-121345)

(cherry picked from commit 8334a1b55c93068f5d243852029baa83377ff6c9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 weeks agoPost 3.11.14
Pablo Galindo [Thu, 9 Oct 2025 17:11:08 +0000 (19:11 +0200)] 
Post 3.11.14

4 weeks agoPython 3.11.14 v3.11.14
Pablo Galindo [Thu, 9 Oct 2025 16:16:24 +0000 (18:16 +0200)] 
Python 3.11.14

4 weeks ago[3.11] 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:51 +0000 (11:06 +0200)] 
[3.11] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-139552) (GH-139762)

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.11] gh-137638: Use macos-15-intel in GitHub Actions (GH-139154) (#139794)
Jacob Coffee [Wed, 8 Oct 2025 16:04:27 +0000 (12:04 -0400)] 
[3.11] gh-137638: Use macos-15-intel in GitHub Actions (GH-139154) (#139794)

4 weeks ago[3.11] gh-139700: Check consistency of the zip64 end of central directory record...
Miss Islington (bot) [Wed, 8 Oct 2025 11:46:45 +0000 (13:46 +0200)] 
[3.11] gh-139700: Check consistency of the zip64 end of central directory record (GH-139702) (GH-139708) (GH-139713)

(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.11] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (GH-137774...
Miss Islington (bot) [Tue, 7 Oct 2025 12:05:06 +0000 (14:05 +0200)] 
[3.11] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (GH-137774) (GH-139659)

"] ]>" 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)
(cherry picked from commit dcf24768c918c41821cda6fe6a1aa20ce26545dd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.11] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat...
Sebastian Pipping [Mon, 6 Oct 2025 23:34:05 +0000 (01:34 +0200)] 
[3.11] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (GH-139403) (#139612)

* gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (#139403)

* Modules/pyexpat.c: Disallow collection of in-use parent parsers.

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)

* Move news item from section "Core and Builtins" to section "Security"

5 weeks ago[3.11] Remove link to the PDF downloads (GH-139142) (#139430)
Adam Turner [Mon, 29 Sep 2025 20:44:19 +0000 (21:44 +0100)] 
[3.11] Remove link to the PDF downloads (GH-139142) (#139430)

5 weeks ago[3.11] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (#139378)
Stan Ulbrych [Sun, 28 Sep 2025 13:47:21 +0000 (14:47 +0100)] 
[3.11] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (#139378)

5 weeks ago[3.11] gh-138998: Upgrade vendored expat to 2.7.2 (#138999) (#139056)
Stan Ulbrych [Fri, 26 Sep 2025 20:37:39 +0000 (21:37 +0100)] 
[3.11] gh-138998: Upgrade vendored expat to 2.7.2 (#138999) (#139056)

gh-138998: Upgrade vendored expat to 2.7.2 (#138999)

(cherry picked from commit 64c876dd6812ade19cb7a0c619111d30f0b2b860)

6 weeks ago[3.11] gh-135374: Adjust test for setuptools' replacement of distutils (GH-138796)
Petr Viktorin [Wed, 24 Sep 2025 13:41:24 +0000 (15:41 +0200)] 
[3.11] gh-135374: Adjust test for setuptools' replacement of distutils (GH-138796)

ensurepip installs a bundled copy of distutils, which overrides
the stdlib module. This affects several tests. This commit:

- skips distutils in test___all__, as we're unlikely to break
  `__all__` in a security-fix-only branch (and if we do it's not
  much of a a big deal)
- skips importability tests of distutils submodules if the
  setuptools hack is detected

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
7 weeks ago[3.11] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743) (GH-138755)
Hugo van Kemenade [Sat, 13 Sep 2025 20:36:27 +0000 (23:36 +0300)] 
[3.11] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743) (GH-138755)

* [3.11] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743)
(cherry picked from commit 6e78a539bfb406238ec251ba01b7a1819e5c303e)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Update .azure-pipelines/libffi-build.yml

7 weeks ago[3.11] gh-137638: Remove macos-13 from GitHub Actions (GH-138002)
Zachary Ware [Sat, 13 Sep 2025 20:36:11 +0000 (15:36 -0500)] 
[3.11] gh-137638: Remove macos-13 from GitHub Actions (GH-138002)

Adapted from GH-137989.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7 weeks ago[3.11] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH...
Serhiy Storchaka [Sat, 13 Sep 2025 20:35:57 +0000 (23:35 +0300)] 
[3.11] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH-135310) (GH-137782)

(cherry picked from commit 4d02f31cdd45d81b95540d9076222b709d4f2335)

Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 months ago[3.11] gh-130577: tarfile now validates archives to ensure member offsets are non...
Miss Islington (bot) [Tue, 19 Aug 2025 18:00:46 +0000 (20:00 +0200)] 
[3.11] gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (#137172)

gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027)
(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.11] gh-135661: Fix parsing attributes with whitespaces around the "=" separator...
Miss Islington (bot) [Tue, 22 Jul 2025 09:56:55 +0000 (11:56 +0200)] 
[3.11] gh-135661: Fix parsing attributes with whitespaces around the "=" separator in HTMLParser (GH-136908) (GH-136920)

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.11] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5...
Miss Islington (bot) [Sat, 12 Jul 2025 12:26:49 +0000 (14:26 +0200)] 
[3.11] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5 standard (GH-135930) (GH-136268) (#136291)

* 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)
(cherry picked from commit c555f889c3558a0a8cd8d8ecc2b493014b88a700)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Waylan Limberg <waylan.limberg@icloud.com>
3 months ago[3.11] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard...
Miss Islington (bot) [Sat, 12 Jul 2025 12:24:39 +0000 (14:24 +0200)] 
[3.11] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard (GH-135664) (GH-136274)

* "--!>" 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>
4 months ago[3.11] gh-135462: Fix quadratic complexity in processing special input in HTMLParser...
Serhiy Storchaka [Thu, 3 Jul 2025 21:05:46 +0000 (00:05 +0300)] 
[3.11] gh-135462: Fix quadratic complexity in processing special input in HTMLParser (GH-135464) (GH-135484)

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.11] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127813...
Miss Islington (bot) [Mon, 16 Jun 2025 12:51:04 +0000 (14:51 +0200)] 
[3.11] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127813) (#135463)

[3.12] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127813)

This fixes a UBSan failure (unaligned zero-size memcpy) in `dictobject.c`.
(cherry picked from commit 9af96f440618304e7cc609c246e1f8c8b2d7a119)

(cherry picked from commit 320a1dcd97110598a4fe6ae1c0018cd3decc408f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.11] gh-135374: Update the bundled copy of setuptools to 79.0.1 (#135396)
Łukasz Langa [Wed, 11 Jun 2025 15:57:25 +0000 (17:57 +0200)] 
[3.11] gh-135374: Update the bundled copy of setuptools to 79.0.1 (#135396)

5 months agoPost 3.11.13
Pablo Galindo [Tue, 3 Jun 2025 19:31:21 +0000 (20:31 +0100)] 
Post 3.11.13

5 months agoPython 3.11.13 v3.11.13
Pablo Galindo [Tue, 3 Jun 2025 18:37:18 +0000 (19:37 +0100)] 
Python 3.11.13

5 months ago[3.11] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict...
T. Wouters [Tue, 3 Jun 2025 14:58:39 +0000 (16:58 +0200)] 
[3.11] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (GH-135037) (GH-135068)

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.
(cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a)
(cherry picked from commit c358142cab7ce621a2745262a90df967b357f61c)

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.11] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH...
Miss Islington (bot) [Tue, 3 Jun 2025 14:24:20 +0000 (16:24 +0200)] 
[3.11] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836) (GH-135091)

(cherry picked from commit d83576bf48d07d5e29d5d171c4e25afb048622aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.11] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH...
Miss Islington (bot) [Tue, 3 Jun 2025 14:03:49 +0000 (16:03 +0200)] 
[3.11] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH-123419) (GH-135087)

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.11] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) ...
Miss Islington (bot) [Tue, 3 Jun 2025 13:55:00 +0000 (15:55 +0200)] 
[3.11] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) (GH-134613)

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.11] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses...
Miss Islington (bot) [Tue, 3 Jun 2025 13:43:36 +0000 (15:43 +0200)] 
[3.11] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135080)

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: Andrew Svetlov <andrew.svetlov@gmail.com>
5 months ago[3.11] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)...
Miss Islington (bot) [Mon, 2 Jun 2025 15:53:12 +0000 (17:53 +0200)] 
[3.11] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063) (GH-134479)

(cherry picked from commit f3fc0c16e08b317cb201cf1073e934e6909f1251)

Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
5 months ago[3.11] gh-133767: Fix use-after-free in the unicode-escape decoder with an error...
Serhiy Storchaka [Mon, 2 Jun 2025 15:52:52 +0000 (18:52 +0300)] 
[3.11] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133944) (GH-134341)

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)
(cherry picked from commit a75953b347716fff694aa59a7c7c2489fa50d1f5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.11] gh-126500: test_ssl: Don't stop ThreadedEchoServer on OSError in ConnectionHan...
Miss Islington (bot) [Wed, 14 May 2025 18:31:04 +0000 (20:31 +0200)] 
[3.11] gh-126500: test_ssl: Don't stop ThreadedEchoServer on OSError in ConnectionHandler; rely on __exit__ (GH-126503) (GH-126572) (GH-133148)

gh-126500: test_ssl: Don't stop ThreadedEchoServer on OSError in ConnectionHandler; rely on __exit__ (GH-126503)

If `read()` in the ConnectionHandler thread raises `OSError` (except `ConnectionError`),
the ConnectionHandler shuts down the entire ThreadedEchoServer,
preventing further connections.
It also does that for `EPROTOTYPE` in `wrap_conn`.

As far as I can see, this is done to avoid the server thread getting stuck,
forgotten, in its accept loop. However, since 2011 (5b95eb90a7167285b6544b50865227c584943c9a)
the server is used as a context manager, and its `__exit__` does `stop()` and `join()`.
(I'm not sure if we *always* used `with` since that commit, but currently we do.)

Make sure that the context manager *is* used, and remove the `server.stop()`
calls from ConnectionHandler.

(cherry picked from commit c9cda1608edf7664c10f4f467e24591062c2fe62)
(cherry picked from commit aee80cd5e7c6be90c69b9aa9c09faa19b91cdccd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
7 months agoPost 3.11.12
Pablo Galindo [Tue, 8 Apr 2025 15:09:30 +0000 (16:09 +0100)] 
Post 3.11.12

7 months agoPython 3.11.12 v3.11.12
Pablo Galindo [Tue, 8 Apr 2025 14:14:49 +0000 (15:14 +0100)] 
Python 3.11.12

7 months ago[3.11] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132240)
Seth Michael Larson [Tue, 8 Apr 2025 09:36:51 +0000 (04:36 -0500)] 
[3.11] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132240)

(cherry picked from commit c0de6500249469e6fc5b458d6afb6bad1b6755cd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
7 months ago[3.11] gh-131261: Update libexpat to 2.7.0 (CVE-2024-8176) (GH-131272) (GH-131362)
Seth Michael Larson [Thu, 3 Apr 2025 16:32:11 +0000 (11:32 -0500)] 
[3.11] gh-131261: Update libexpat to 2.7.0 (CVE-2024-8176) (GH-131272) (GH-131362)

(cherry picked from commit bb0268f60dfe903a9bdb8d84104247a9318c6b18)
(cherry picked from commit 6af54d298d5135302037cdda7a1f5535e48cb1b6)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
7 months ago[3.11] gh-121284: Fix email address header folding with parsed encoded-word (GH-12275...
Miss Islington (bot) [Thu, 3 Apr 2025 16:27:02 +0000 (18:27 +0200)] 
[3.11] gh-121284: Fix email address header folding with parsed encoded-word (GH-122754) (GH-131405)

Email generators using email.policy.default may convert an RFC 2047
encoded-word to unencoded form during header refolding. In a structured
header, this could allow 'specials' chars outside a quoted-string,
leading to invalid address headers and enabling spoofing. This change
ensures a parsed encoded-word that contains specials is kept as an
encoded-word while the header is refolded.

[Better fix from @bitdancer.]

(cherry picked from commit 295b53df2aa18deb625a7da41f7e4babfe6ef34b)

Co-authored-by: Mike Edmunds <medmunds@gmail.com>
Co-authored-by: R David Murray <rdmurray@bitdance.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
7 months ago[3.11] gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361) (GH-127905) (GH...
Victor Stinner [Thu, 3 Apr 2025 16:25:51 +0000 (18:25 +0200)] 
[3.11] gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361) (GH-127905) (GH-131970)

gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361)

From the ERR_raise manpage:

    ERR_LIB_SYS

        This "library code" indicates that a system error is
        being reported.  In this case, the reason code given
        to `ERR_raise()` and `ERR_raise_data()` *must* be
        `errno(3)`.

This PR only handles ERR_LIB_SYS for the high-lever error types
SSL_ERROR_SYSCALL and SSL_ERROR_SSL, i.e., not the ones where
OpenSSL indicates it has some more information about the issue.

(cherry picked from commit f4b31edf2d9d72878dab1f66a36913b5bcc848ec)
(cherry picked from commit 7f707fa6c67d0bfa9bbc1a9f344b932789659397)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
7 months ago[3.11] gh-106883: Make test_current_frames_exceptions_deadlock faster (#131182)
Diego Russo [Fri, 14 Mar 2025 01:59:59 +0000 (01:59 +0000)] 
[3.11] gh-106883: Make test_current_frames_exceptions_deadlock faster (#131182)

7 months ago[3.11] gh-106883 Fix deadlock in threaded application (#117332)
Diego Russo [Tue, 11 Mar 2025 15:31:03 +0000 (15:31 +0000)] 
[3.11] gh-106883 Fix deadlock in threaded application (#117332)

When using threaded applications, there is a high risk of a deadlock in
the interpreter. It's a lock ordering deadlock with HEAD_LOCK(&_PyRuntime); and the GIL.

By disabling the GC during the _PyThread_CurrentFrames() and
_PyThread_CurrentExceptions() calls fixes the issue.

8 months ago[3.11] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (GH-130573...
Miss Islington (bot) [Thu, 27 Feb 2025 12:43:48 +0000 (13:43 +0100)] 
[3.11] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (GH-130573) (#130593)

8 months ago[3.11] gh-119511: Fix a potential denial of service in imaplib (GH-119514) (#129357)
Miss Islington (bot) [Wed, 19 Feb 2025 13:16:30 +0000 (14:16 +0100)] 
[3.11] gh-119511: Fix a potential denial of service in imaplib (GH-119514) (#129357)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
8 months ago[3.11] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed...
Miss Islington (bot) [Wed, 19 Feb 2025 13:13:52 +0000 (14:13 +0100)] 
[3.11] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418) (#129528)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 months ago[3.11] gh-80222: Fix email address header folding with long quoted-string (GH-122753...
Miss Islington (bot) [Wed, 19 Feb 2025 13:12:34 +0000 (14:12 +0100)] 
[3.11] gh-80222: Fix email address header folding with long quoted-string (GH-122753) (#129009)

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>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 months ago[3.11] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (#130276)
Miss Islington (bot) [Wed, 19 Feb 2025 08:51:35 +0000 (09:51 +0100)] 
[3.11] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (#130276)

Co-authored-by: James De Bias <81095953+DBJim@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.11] gh-122544: Change OS image in GitHub Actions to Ubuntu 24.04 (#122566) (#130260)
Hugo van Kemenade [Tue, 18 Feb 2025 21:40:16 +0000 (23:40 +0200)] 
[3.11] gh-122544: Change OS image in GitHub Actions to Ubuntu 24.04 (#122566) (#130260)

8 months ago[3.11] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH...
Hugo van Kemenade [Tue, 18 Feb 2025 12:16:23 +0000 (14:16 +0200)] 
[3.11] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH-130200) (#130252)

8 months ago[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)
Adam Turner [Thu, 13 Feb 2025 01:33:04 +0000 (01:33 +0000)] 
[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)

* [3.11] Pin python-docs-theme

* Use today's release

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.11] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465...
Miss Islington (bot) [Thu, 13 Feb 2025 01:32:37 +0000 (02:32 +0100)] 
[3.11] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561) (#129566)

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

Restore the skipUnless removed by GH-119465.

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

actual machines see:

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

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

Co-authored-by: Gregory P. Smith <greg@krypto.org>
8 months ago[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)
Adam Turner [Thu, 13 Feb 2025 01:31:11 +0000 (01:31 +0000)] 
[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)

9 months ago[3.11] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#129171)
Victor Stinner [Thu, 23 Jan 2025 21:14:08 +0000 (22:14 +0100)] 
[3.11] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#129171)

Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host
address or the "any" address, use the local communication address
(loopback): VMADDR_CID_LOCAL.

On Linux 6.9, apparently, the /dev/vsock device is now available but
get_cid() returns VMADDR_CID_ANY (-1).

(cherry picked from commit e94dbe4ed83460f18bd72563c5f09f6cdc71f604)
(cherry picked from commit c750061047ee520d8299334df4b112fd983d7e48)
(cherry picked from commit cbfe3023e46b544b80ea1a38a8c900c6fb881554)

9 months ago[3.11] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub...
Miss Islington (bot) [Wed, 22 Jan 2025 12:25:24 +0000 (13:25 +0100)] 
[3.11] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version (GH-128090) (#129172)

9 months ago[3.11] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128879)
Miss Islington (bot) [Tue, 21 Jan 2025 19:26:25 +0000 (20:26 +0100)] 
[3.11] gh-128874: Fix the documentation for blurb 2.0 (GH-128875) (#128879)

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.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) (#127827)
Petr Viktorin [Wed, 11 Dec 2024 14:58:46 +0000 (15:58 +0100)] 
[3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) (#127827)

* [3.11] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718)

Make `versionchanged:: next`` expand to current (unreleased) version.

When a new CPython release is cut, the release manager will replace
all such occurences of "next" with the just-released version.
(See the issue for release-tools and devguide PRs.)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 7d24ea9db3e8fdca52058629c9ba577aba3d8e5c)

gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623)

(cherry-picked from e349f73a5ad2856b0a7cbe4aef7cc081c7aed777)

* Import VersionChange

sphinx.domains.changeset.VersionChange exists at least since Sphinx 2.1,
according to: https://www.sphinx-doc.org/en/master/extdev/deprecated.html

* Get config from env

* Use version, not arguments directly

11 months agoPost 3.11.11
Pablo Galindo [Tue, 3 Dec 2024 18:25:54 +0000 (13:25 -0500)] 
Post 3.11.11

11 months agoPython 3.11.11 v3.11.11
Pablo Galindo [Tue, 3 Dec 2024 17:19:03 +0000 (12:19 -0500)] 
Python 3.11.11

11 months ago[3.11] gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 ...
Miss Islington (bot) [Tue, 3 Dec 2024 16:57:10 +0000 (17:57 +0100)] 
[3.11] gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793) (GH-123818)

Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d18312712baed4699fe7333abb050ec9b7)

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

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
11 months ago[3.11] gh-126623: Update libexpat to 2.6.4, make future updates easier (GH-126792...
Seth Michael Larson [Tue, 3 Dec 2024 16:42:23 +0000 (10:42 -0600)] 
[3.11] gh-126623: Update libexpat to 2.6.4, make future updates easier (GH-126792) (GH-126798)

Update libexpat to 2.6.4, make future updates easier.
(cherry picked from commit 3c9996909402fadc98e6ca2a64e75a71a7427352)

11 months ago[3.11] gh-127359: Pin Tcl/Tk to 8 (8.6) for testing macOS (GH-127365) (#127407)
Hugo van Kemenade [Sat, 30 Nov 2024 16:38:21 +0000 (18:38 +0200)] 
[3.11] gh-127359: Pin Tcl/Tk to 8 (8.6) for testing macOS (GH-127365) (#127407)

11 months ago[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding (#126542)
Petr Viktorin [Fri, 8 Nov 2024 12:26:57 +0000 (13:26 +0100)] 
[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding (#126542)

12 months ago[3.11] gh-87846: test_io: Ignore OpenWrapper in test___all__ (#126478)
Petr Viktorin [Wed, 6 Nov 2024 13:39:30 +0000 (14:39 +0100)] 
[3.11] gh-87846: test_io: Ignore OpenWrapper in test___all__ (#126478)

12 months ago[3.11] gh-124651: Quote template strings in `venv` activation scripts (GH-124712...
Victor Stinner [Fri, 1 Nov 2024 13:11:47 +0000 (14:11 +0100)] 
[3.11] gh-124651: Quote template strings in `venv` activation scripts (GH-124712) (GH-126185) (#126269)

12 months ago[3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675) (#123699)
Zachary Ware [Tue, 22 Oct 2024 15:48:51 +0000 (10:48 -0500)] 
[3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675) (#123699)

* [3.11] gh-123418: Update CI to use fresh OpenSSL releases (GH-123675)

Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
(cherry picked from commit 56b00f4705634af2861a8aa9c2eb5769012220f0)

Co-authored-by: Zachary Ware <zach@python.org>
* Adjust build_ubuntu_ssltests job to use cache for the correct OS version

12 months ago[3.11] Adjust build_ubuntu_ssltests job to use cache for the correct OS version ...
Zachary Ware [Tue, 22 Oct 2024 15:05:48 +0000 (10:05 -0500)] 
[3.11] Adjust build_ubuntu_ssltests job to use cache for the correct OS version (#124484)

12 months ago[3.11] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compre...
Petr Viktorin [Tue, 22 Oct 2024 11:11:14 +0000 (13:11 +0200)] 
[3.11] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (GH-125042) (#125577)

gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (#125042)

(cherry picked from commit cc5a225cdc2a5d4e035dd08d59cef39182c10a6c)

14 months agoPost 3.11.10
Pablo Galindo [Sat, 7 Sep 2024 01:34:11 +0000 (02:34 +0100)] 
Post 3.11.10

14 months agoPython 3.11.10 v3.11.10
Pablo Galindo [Sat, 7 Sep 2024 01:02:27 +0000 (02:02 +0100)] 
Python 3.11.10

14 months ago[3.11] gh-102988: Adjust version numbers in versionadded directives (#123772)
Petr Viktorin [Fri, 6 Sep 2024 12:29:04 +0000 (14:29 +0200)] 
[3.11] gh-102988: Adjust version numbers in versionadded directives (#123772)

14 months ago[3.11] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr...
Petr Viktorin [Fri, 6 Sep 2024 10:46:23 +0000 (12:46 +0200)] 
[3.11] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123767)

Detect email address parsing errors and return empty tuple to
indicate the parsing error (old API). Add an optional 'strict'
parameter to getaddresses() and parseaddr() functions. Patch by
Thomas Dwyer.

(cherry picked from commit 4a153a1d3b18803a684cd1bcc2cdf3ede3dbae19)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Thomas Dwyer <github@tomd.tel>
14 months ago[3.11] gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123673) (#123692)
Zachary Ware [Thu, 5 Sep 2024 12:28:35 +0000 (07:28 -0500)] 
[3.11] gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123673) (#123692)

(cherry picked from commit d2eafe2f48aac31aa8a152620bdfd0f2a274ee1d)

14 months ago[3.11] gh-123678: Upgrade libexpat 2.6.3 (#123709)
Seth Michael Larson [Thu, 5 Sep 2024 12:27:22 +0000 (07:27 -0500)] 
[3.11] gh-123678: Upgrade libexpat 2.6.3 (#123709)

(cherry picked from commit e6fe0ac014e8f5b17064c20d1ae937dbd4c761a2)

14 months ago[3.11]GH-112275: Fix HEAD_LOCK deadlock in child process after fork (#112336)
ChuBoning [Wed, 4 Sep 2024 17:14:59 +0000 (01:14 +0800)] 
[3.11]GH-112275: Fix HEAD_LOCK deadlock in child process after fork (#112336)

HEAD_LOCK is called from _PyEval_ReInitThreads->_PyThreadState_DeleteExcept before _PyRuntimeState_ReInitThreads reinit runtime->interpreters.mutex which might be locked before fork.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
14 months ago[3.11] gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions...
Miss Islington (bot) [Wed, 4 Sep 2024 16:06:13 +0000 (18:06 +0200)] 
[3.11] gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. (GH-119364) (#119871)

(cherry picked from commit 015b1fdd0ae03f94a5dfda051b020810d1c952dd)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
14 months ago[3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event...
Steve Dower [Wed, 4 Sep 2024 16:02:48 +0000 (17:02 +0100)] 
[3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event (#119734)

gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event

14 months ago[3.11] gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354) ...
Jason R. Coombs [Wed, 4 Sep 2024 15:52:54 +0000 (11:52 -0400)] 
[3.11] gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354) (#123425)

Applies changes from zipp 3.20.1 and jaraco/zippGH-124
(cherry picked from commit 2231286d78d328c2f575e0b05b16fe447d1656d6)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Restore the slash-prefixed paths in the malformed_paths test.

14 months ago[3.11] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with...
Miss Islington (bot) [Wed, 4 Sep 2024 15:50:00 +0000 (17:50 +0200)] 
[3.11] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075) (#123105)

This fixes CVE-2024-7592.
(cherry picked from commit 44e458357fca05ca0ae2658d62c8c595b048b5ef)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
14 months ago[3.11] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with...
Serhiy Storchaka [Wed, 4 Sep 2024 15:42:58 +0000 (18:42 +0300)] 
[3.11] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority (GH-113563) (#119025)

(cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e)

14 months ago[3.11] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233...
Łukasz Langa [Wed, 4 Sep 2024 15:37:28 +0000 (17:37 +0200)] 
[3.11] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122608)

Per RFC 2047:

> [...] these encoding schemes allow the
> encoding of arbitrary octet values, mail readers that implement this
> decoding should also ensure that display of the decoded data on the
> recipient's terminal will not cause unwanted side-effects

It seems that the "quoted-word" scheme is a valid way to include
a newline character in a header value, just like we already allow
undecodable bytes or control characters.
They do need to be properly quoted when serialized to text, though.

Verify that email headers are well-formed.

This should fail for custom fold() implementations that aren't careful
about newlines.

(cherry picked from commit 097633981879b3c9de9a1dd120d3aa585ecc2384)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bas Bloemsaat <bas@bloemsaat.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
14 months ago[3.11] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (...
Seth Michael Larson [Tue, 3 Sep 2024 15:07:13 +0000 (10:07 -0500)] 
[3.11] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (#123639)

* Remove backtracking when parsing tarfile headers
* Rewrite PAX header parsing to be stricter
* Optimize parsing of GNU extended sparse headers v0.0

(cherry picked from commit 34ddb64d088dd7ccc321f6103d23153256caa5d4)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
14 months ago[3.11] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122925)
Jason R. Coombs [Mon, 19 Aug 2024 23:28:20 +0000 (19:28 -0400)] 
[3.11] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122925)

* gh-122905: Sanitize names in zipfile.Path. (#122906)

Ported from zipp 3.19.1; ref jaraco/zipp#119.

(cherry picked from commit 9cd03263100ddb1657826cc4a71470786cab3932)

* [3.11] gh-122905: Sanitize names in zipfile.Path. (GH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd03263100ddb1657826cc4a71470786cab3932)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
14 months ago[3.11] gh-119506: fix _io.TextIOWrapper.write() write during flush (#119507) (#120314)
Inada Naoki [Fri, 9 Aug 2024 17:04:36 +0000 (02:04 +0900)] 
[3.11] gh-119506: fix _io.TextIOWrapper.write() write during flush (#119507) (#120314)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
fix _io.TextIOWrapper.write() write during flush (#119507)

14 months ago[3.11] gh-114539: Clarify implicit launching of shells by subprocess (GH-117996)...
Miss Islington (bot) [Fri, 9 Aug 2024 13:57:50 +0000 (15:57 +0200)] 
[3.11] gh-114539: Clarify implicit launching of shells by subprocess (GH-117996) (#118003)

Co-authored-by: Steve Dower <steve.dower@python.org>
15 months ago[3.11] gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reloa...
Miss Islington (bot) [Fri, 2 Aug 2024 13:09:45 +0000 (15:09 +0200)] 
[3.11] gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493) (GH-122506)

(cherry picked from commit f071f01b7b7e19d7d6b3a4b0ec62f820ecb14660)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
15 months ago[3.11] gh-122133: Authenticate socket connection for `socket.socketpair()` fallback...
Miss Islington (bot) [Tue, 30 Jul 2024 12:43:45 +0000 (14:43 +0200)] 
[3.11] gh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH-122134) (#122426)

Authenticate socket connection for `socket.socketpair()` fallback when the platform does not have a native `socketpair` C API.  We authenticate in-process using `getsocketname` and `getpeername` (thanks to Nathaniel J Smith for that suggestion).

(cherry picked from commit 78df1043dbdce5c989600616f9f87b4ee72944e5)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
15 months ago[3.11] gh-121957: Emit audit events for python -i and python -m asyncio (GH-122118)
Łukasz Langa [Mon, 22 Jul 2024 11:44:55 +0000 (13:44 +0200)] 
[3.11] gh-121957: Emit audit events for python -i and python -m asyncio (GH-122118)

16 months ago[3.11] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 ...
Miss Islington (bot) [Mon, 17 Jun 2024 18:01:59 +0000 (20:01 +0200)] 
[3.11] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480) (#120614)

17 months ago[3.11] gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488) (GH-118739)
Steve Dower [Fri, 24 May 2024 00:13:18 +0000 (01:13 +0100)] 
[3.11] gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488) (GH-118739)

17 months ago[3.11] gh-118643: Fix AttributeError in the email module (GH-119099) (#119393)
Serhiy Storchaka [Thu, 23 May 2024 12:09:03 +0000 (15:09 +0300)] 
[3.11] gh-118643: Fix AttributeError in the email module (GH-119099) (#119393)

Fix regression introduced in gh-100884: AttributeError when re-fold a long
address list.

Also fix more cases of incorrect encoding of the address separator in the
address list missed in gh-100884.
(cherry picked from commit 858b9e85fcdd495947c9e892ce6e3734652c48f2)

18 months ago[3.11] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges (GH-113179...
Petr Viktorin [Thu, 25 Apr 2024 12:45:48 +0000 (14:45 +0200)] 
[3.11] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges (GH-113179) (GH-113186) (GH-118177) (#118227)

18 months ago[3.11] gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) (#118185)
Seth Michael Larson [Tue, 23 Apr 2024 19:28:50 +0000 (14:28 -0500)] 
[3.11] gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) (#118185)

Upgrade libexpat to 2.6.2
(cherry picked from commit c9829eec0883a8991ea4d319d965e123a3cf6c20)

19 months ago[3.11] gh-109120: Fix syntax error in handlinh of incorrect star expressions… (#117464)
Grigoriev Semyon [Wed, 3 Apr 2024 10:37:39 +0000 (13:37 +0300)] 
[3.11] gh-109120: Fix syntax error in handlinh of incorrect star expressions… (#117464)

gh-109120: Fix syntax error in handlinh of incorrect star expressions (#117444)

(cherry picked from commit c97d3af2391e62ef456ef2365d48ab9b8cdbe27b)

19 months agoMerge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Tue, 2 Apr 2024 13:38:17 +0000 (14:38 +0100)] 
Merge remote-tracking branch 'upstream/3.11' into 3.11

19 months agoPost 3.11.9
Pablo Galindo [Tue, 2 Apr 2024 13:37:54 +0000 (14:37 +0100)] 
Post 3.11.9

19 months ago[3.11] gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
Miss Islington (bot) [Tue, 2 Apr 2024 13:31:08 +0000 (15:31 +0200)] 
[3.11] gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)

gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
(cherry picked from commit 52f5b7f9e05fc4a25e385c046e0b091641674556)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
19 months agoPython 3.11.9 v3.11.9
Pablo Galindo [Tue, 2 Apr 2024 08:24:04 +0000 (09:24 +0100)] 
Python 3.11.9

19 months ago[3.11] Docs: specify XML document name in xml.etree.elementtree example (GH-24223...
Miss Islington (bot) [Mon, 1 Apr 2024 20:02:54 +0000 (22:02 +0200)] 
[3.11] Docs: specify XML document name in xml.etree.elementtree example (GH-24223) (#117430)

(cherry picked from commit 9dae05ee59eeba0e67af2a46f2a2907c9f8d7e4a)

Co-authored-by: Moshe Kaplan <mosheekaplan@gmail.com>
19 months ago[3.11] Docs: add more links to PIPE in subprocess docs (GH-25416) (#117428)
Miss Islington (bot) [Mon, 1 Apr 2024 19:58:28 +0000 (21:58 +0200)] 
[3.11] Docs: add more links to PIPE in subprocess docs (GH-25416) (#117428)

(cherry picked from commit fc2071687b708598264a3403b7f9104667c1092f)

Co-authored-by: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com>
19 months ago[3.11] [3.12] gh-117347: Fix test_clinic side effects (GH-117363) (GH-117365) (#117366)
Miss Islington (bot) [Fri, 29 Mar 2024 11:21:56 +0000 (12:21 +0100)] 
[3.11] [3.12] gh-117347: Fix test_clinic side effects (GH-117363) (GH-117365) (#117366)

[3.12] gh-117347: Fix test_clinic side effects (GH-117363) (GH-117365)

gh-117347: Fix test_clinic side effects (GH-117363)

Save/restore converters in ClinicWholeFileTest and
ClinicExternalTest.

(cherry picked from commit c80d13838dbcfe239eeabfd950bc524d797e6db1)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
19 months ago[3.11] gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111...
Miss Islington (bot) [Fri, 29 Mar 2024 00:38:13 +0000 (01:38 +0100)] 
[3.11] gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111) (#117358)

gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111)
(cherry picked from commit 8eec7ed714e65d616573b7331780b0aa43c6ed6a)

Co-authored-by: 傅立业(Chris Fu) <17433201@qq.com>