]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Wed, 11 Sep 2024 09:32:39 +0000 (12:32 +0300)]
[3.12] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (GH-123937)
Now a memoryview object can only be cleared if there are no buffers
that refer it.
(cherry picked from commit
a1dbf2ea69acc6ccee6292709af1dadd55c068be )
Miss Islington (bot) [Wed, 11 Sep 2024 06:28:36 +0000 (08:28 +0200)]
[3.12] gh-123905: Update TOML description to include version number (GH-123906) (#123907)
Miss Islington (bot) [Tue, 10 Sep 2024 20:12:41 +0000 (22:12 +0200)]
gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918)
(cherry picked from commit
00ffdf27367fb9aef247644a96f1a9ffb5be1efe )
Co-authored-by: adang1345 <adang1345@gmail.com>
Miss Islington (bot) [Tue, 10 Sep 2024 13:27:50 +0000 (15:27 +0200)]
[3.12] gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886) (#123891)
gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886)
(cherry picked from commit
b52de7e02dba9e1f176d6d978d782fbd0509311e )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 10 Sep 2024 10:11:56 +0000 (12:11 +0200)]
[3.12] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123897)
gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893)
(cherry picked from commit
fb1b51a58df4315f7ef3171a5abeb74f132b0971 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 9 Sep 2024 14:05:44 +0000 (16:05 +0200)]
[3.12] Mention `curl` in `contextvars` docs (GH-123838) (#123869)
Mention `curl` in `contextvars` docs (GH-123838)
(cherry picked from commit
b950831c941a37c37b68a771610e072d11d33331 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Victor Stinner [Mon, 9 Sep 2024 13:22:13 +0000 (15:22 +0200)]
[3.12] Fix typos (#123775) (#123867)
Fix typos (#123775)
(cherry picked from commit
9017b95ff2dcff16bcb0b0a609ed2b0daa845943 )
Co-authored-by: algonell <algonell@gmail.com>
Miss Islington (bot) [Mon, 9 Sep 2024 12:47:05 +0000 (14:47 +0200)]
[3.12] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123865)
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
(cherry picked from commit
df4f0cbfad8a1ed0146cabd30d01efd135d4d048 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 9 Sep 2024 11:18:42 +0000 (13:18 +0200)]
[3.12] gh-123780: Make test_pkgutil clean up `spam` module (GH-123036) (GH-123782)
(cherry picked from commit
eca3fe40c251d51964172dd4e6e9c7d0d85d7d4a )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Sun, 8 Sep 2024 04:24:08 +0000 (06:24 +0200)]
[3.12] gh-123789: `secrets.randbits` returns only non-negative int (GH-123801) (#123831)
gh-123789: `secrets.randbits` returns only non-negative int (GH-123801)
(cherry picked from commit
beee91cdcc0dbecab252f7c5c7c51e2adb8edc26 )
Co-authored-by: Wulian <1055917385@qq.com>
Miss Islington (bot) [Sat, 7 Sep 2024 18:22:54 +0000 (20:22 +0200)]
[3.12] gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793) (GH-123814)
gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)
Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit
76a1c5d18312712baed4699fe7333abb050ec9b7 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Miss Islington (bot) [Sat, 7 Sep 2024 18:19:23 +0000 (20:19 +0200)]
[3.12] Remove excessive backticks in logging doc (GH-123813) (#123817)
Remove excessive backticks in logging doc (GH-123813)
(cherry picked from commit
93050e46144c5864fbf2b39eac798387d5758a2d )
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Ned Deily [Sat, 7 Sep 2024 01:01:31 +0000 (21:01 -0400)]
[3.12] Update macOS installer Welcome and ReadMe for 3.12.6 (#123800)
These changes to the Welcome and ReadMe files displayed in the macOS installer were included in the 3.12.6 release process.
Thomas Wouters [Fri, 6 Sep 2024 22:22:27 +0000 (00:22 +0200)]
Post 3.12.6
Thomas Wouters [Fri, 6 Sep 2024 19:00:07 +0000 (21:00 +0200)]
Python 3.12.6
Alex Waygood [Fri, 6 Sep 2024 17:06:36 +0000 (18:06 +0100)]
[3.12] gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (#123544) (#123792)
Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:51:16 +0000 (15:51 +0200)]
[3.12] gh-123309: Add more tests for the pickletools module (GH-123355) (#123534)
Add tests for genops() and dis().
(cherry picked from commit
e5a567b0a721c26c79530249d9aa159afbd11955 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:50:27 +0000 (15:50 +0200)]
[3.12] gh-123431: Harmonize extension code checks in pickle (GH-123434) (#123460)
This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.
(cherry picked from commit
0c3ea3023878f5ad5ca4680d5510da1fe208cbfa )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:49:35 +0000 (15:49 +0200)]
[3.12] gh-122798: Make tests for warnings in the re module more strict (GH-122799) (#122805)
(cherry picked from commit
d2e5be1f39bc3d48c7bc8c146c4bcadee266672a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:48:23 +0000 (15:48 +0200)]
[3.12] gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179) (#123188)
(cherry picked from commit
90c892efeaae28bd849a01b42842f19dcd67b9f4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:47:42 +0000 (15:47 +0200)]
[3.12] gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788) (#122815)
(cherry picked from commit
6094c6fc2fc30eb9ee7c2f9f1088a851f71bf1b9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sam Gross [Fri, 6 Sep 2024 13:46:56 +0000 (09:46 -0400)]
[3.12] gh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577) (#122626)
The `PyStructSequence` destructor would crash if it was deallocated after
its type's dictionary was cleared by the GC, because it couldn't compute
the "real size" of the instance. This could occur with relatively
straightforward code in the free-threaded build or with a reference
cycle involving the type in the default build, due to differing orders
in which `tp_clear()` was called.
Account for the non-sequence fields in `tp_basicsize` and use that,
along with `Py_SIZE()`, to compute the "real" size of a
`PyStructSequence` in the dealloc function. This avoids the accesses to
the type's dictionary during dealloc, which were unsafe.
(cherry picked from commit
4b63cd170e5dd840bffc80922f09f2d69932ff5c )
Petr Viktorin [Fri, 6 Sep 2024 13:46:05 +0000 (15:46 +0200)]
[3.12] gh-120426: Add the glossary term "immortal" (GH-123191) (GH-123491) (#123636)
Add the glossary term "immortal", mark it as an implementation detail
(cherry picked from commit
6754566a51a5706e8c9da0094b892113311ba20c )
(cherry picked from commit
1af74fa652b40d5ce67875ebfefd2f5a1cc28a2f )
(Unlike the original commits, this adds the entire entry.)
Miss Islington (bot) [Fri, 6 Sep 2024 13:44:54 +0000 (15:44 +0200)]
[3.12] gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417) (#123733)
(cherry picked from commit
327463aef173a1cb9659bccbecfff4530bbe6bbf )
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:43:49 +0000 (15:43 +0200)]
[3.12] gh-123463: Include logging_flow diagram in non-HTML docs (GH-123464) (#123667)
(cherry picked from commit
7d2c2f24daf7a2abd166bb51652ba55c6f55695f )
Co-authored-by: Alexander Bessman <bessman@users.noreply.github.com>
Petr Viktorin [Fri, 6 Sep 2024 11:08:54 +0000 (13:08 +0200)]
[3.12] gh-102988: Adjust version numbers in versionadded directives (GH-123771)
Petr Viktorin [Fri, 6 Sep 2024 10:46:16 +0000 (12:46 +0200)]
[3.12] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123766)
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.
Co-Authored-By: Thomas Dwyer <github@tomd.tel>
(cherry picked from commit
4a153a1d3b18803a684cd1bcc2cdf3ede3dbae19 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 6 Sep 2024 10:43:05 +0000 (12:43 +0200)]
[3.12] gh-123048: Fix missing source location in pattern matching code (GH-123167) (#123170)
gh-123048: Fix missing source location in pattern matching code (GH-123167)
(cherry picked from commit
bffed80230f2617de2ee02bd4bdded1024234dab )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 6 Sep 2024 08:51:18 +0000 (10:51 +0200)]
[3.12] gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) (#123258)
Co-authored-by: Bar Harel <bharel@barharel.com>
Miss Islington (bot) [Fri, 6 Sep 2024 08:08:32 +0000 (10:08 +0200)]
[3.12] gh-103066: Add links and `help` in site.py constants (GH-103777) (#123763)
Co-authored-by: David Caron <dcaron05@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sergey B Kirpichev [Thu, 5 Sep 2024 22:51:26 +0000 (01:51 +0300)]
[3.12] gh-111495: Add tests for PyNumber C API (GH-111996) (#123376)
(cherry picked from commit
2f20f5a9bc7dafdb3c2ae723da90eca1727a95f7 )
Sergey B Kirpichev [Thu, 5 Sep 2024 22:51:02 +0000 (01:51 +0300)]
[3.12] gh-111495: Add tests for PyTuple C API (GH-118757) (#123379)
(cherry picked from commit
dbc1752d4107532d312c78263212e807a3674eb1 )
Co-authored-by: kalyanr <kalyan.ben10@live.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 5 Sep 2024 20:11:25 +0000 (22:11 +0200)]
[3.12] Swap the and from in sentence in init_config.rst (GH-120086) (#123743)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Thu, 5 Sep 2024 18:05:50 +0000 (20:05 +0200)]
[3.12] gh-85453: Improve instance attributes mark up on datetime.rst (GH-123655) (#123741)
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 5 Sep 2024 13:17:46 +0000 (15:17 +0200)]
[3.12] gh-123418: Update macOS installer to use OpenSSL 3.0.15 (GH-123684) (#123730)
(cherry picked from commit
092abc4060768f2ae8b7b9c133558bf05bfeff88 )
Co-authored-by: Zachary Ware <zach@python.org>
Miss Islington (bot) [Thu, 5 Sep 2024 12:25:38 +0000 (14:25 +0200)]
[3.12] gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (GH-123323) (#123677)
* gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (GH-123323)
(cherry picked from commit
a4562fedadb73fe1e978dece65c3bcefb4606678 )
Co-authored-by: Bar Harel <bharel@barharel.com>
* Remove @requires_gil_enabled for 3.12
---------
Co-authored-by: Bar Harel <bharel@barharel.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Thu, 5 Sep 2024 10:50:00 +0000 (12:50 +0200)]
[3.12] gh-123392: Clarify wording regarding parameters that are functions to be called (GH-123394) (GH-123665)
(cherry picked from commit
c08ede27140121a919e884c7e8dfdce7b1a2e906 )
Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
Miss Islington (bot) [Wed, 4 Sep 2024 22:36:39 +0000 (00:36 +0200)]
[3.12] gh-118508: Clarify which characters are matched by `\s` (GH-119155) (#123671)
gh-118508: Clarify which characters are matched by `\s` (GH-119155)
Clarify re syntax
(cherry picked from commit
22fdb8cf899d2dd29f2ac0bf61309af6809719fb )
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Miss Islington (bot) [Wed, 4 Sep 2024 21:31:28 +0000 (23:31 +0200)]
[3.12] gh-123700: Update OpenSSL versions in multissltests and CI (GH-123704)
Remove EOL 1.1.1w from CI and move it to the 'old' set in multissltests,
add latest 3.3.2 to both CI and multissltests.
(cherry picked from commit
d83e30caddcbf9482273743d287577517ec735b7 )
Co-authored-by: Zachary Ware <zach@python.org>
Zachary Ware [Wed, 4 Sep 2024 21:21:37 +0000 (16:21 -0500)]
[3.12] gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123691)
(cherry picked from commit
d2eafe2f48aac31aa8a152620bdfd0f2a274ee1d )
Miss Islington (bot) [Wed, 4 Sep 2024 20:19:33 +0000 (22:19 +0200)]
[3.12] gh-123678: Upgrade libexpat 2.6.3 (GH-123689) (GH-123708)
gh-123678: Upgrade libexpat 2.6.3 (GH-123689)
Upgrade libexpat 2.6.3
(cherry picked from commit
40bdb0deee746e51c71c56329df21e5172fd8aa0 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Zachary Ware [Wed, 4 Sep 2024 19:37:09 +0000 (14:37 -0500)]
[3.12] gh-123418: Update CI to use fresh OpenSSL releases (GH-123698)
Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
(cherry picked from commit
56b00f4705634af2861a8aa9c2eb5769012220f0 )
Miss Islington (bot) [Wed, 4 Sep 2024 09:19:29 +0000 (11:19 +0200)]
[3.12] gh-123580: Fix `signed_number` token in documentation (GH-123582) (GH-123624)
gh-123580: Fix `signed_number` token in documentation (GH-123582)
(cherry picked from commit
9e079c220b7f64d78a1aa36a23b513d7f377a694 )
Co-authored-by: CBerJun <121291537+CBerJun@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Tue, 3 Sep 2024 20:00:53 +0000 (22:00 +0200)]
[3.12] gh-123621: Fix `datamodel.rst` with proper `dict` notation (GH-123648) (#123654)
gh-123621: Fix `datamodel.rst` with proper `dict` notation (GH-123648)
(cherry picked from commit
cfbc841ef3c27b3e65d1223bf8fedf1f652137bc )
Co-authored-by: Lipták Attila (Flash) <113017309+AttilaLiptak@users.noreply.github.com>
Kirill Podoprigora [Tue, 3 Sep 2024 18:21:39 +0000 (21:21 +0300)]
[3.12] gh-123646: Remove accidentally left ``lel.patch`` (GH-123647)
Miss Islington (bot) [Tue, 3 Sep 2024 14:56:19 +0000 (16:56 +0200)]
[3.12] gh-123579: Document exclamation token (GH-123612) (#123638)
(cherry picked from commit
68fe5758bf1900ffdcdf7cd9e40f5018555a39d4 )
Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
Miss Islington (bot) [Mon, 2 Sep 2024 23:21:40 +0000 (01:21 +0200)]
[3.12] gh-123458: Skip SBOM generation if no git repository is detected (GH-123507) (#123615)
gh-123458: Skip SBOM generation if no git repository is detected (GH-123507)
(cherry picked from commit
db42934270c5c23be9f6804cad98dfd8234caf6f )
Co-authored-by: Seth Michael Larson <seth@python.org>
Donghee Na [Mon, 2 Sep 2024 15:37:26 +0000 (00:37 +0900)]
[3.12] gh-101525: Skip test_gdb if the binary is relocated by BOLT. (… (#123603)
[3.12] gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572)
(cherry picked from commit
f95fc4de115ae03d7aa6dece678240df085cb4f6 )
Miss Islington (bot) [Mon, 2 Sep 2024 14:45:09 +0000 (16:45 +0200)]
[3.12] gh-93691: fix too broad source locations of with-statement instructions (GH-120125) (#123605)
gh-93691: fix too broad source locations of with-statement instructions (GH-120125)
(cherry picked from commit
eca3f7762c23b22a73a5e0b09520748c88aab4a0 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Wei-Hsiang (Matt) Wang [Mon, 2 Sep 2024 14:02:39 +0000 (22:02 +0800)]
[3.12] gh-123517: Remove unnecessary `:meth:` parentheses (gh-123518) (GH-123576)
Miss Islington (bot) [Mon, 2 Sep 2024 13:19:40 +0000 (15:19 +0200)]
[3.12] gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354) (#123411)
gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354)
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>
Hugo van Kemenade [Mon, 2 Sep 2024 11:38:42 +0000 (14:38 +0300)]
[3.12] build(deps): bump hypothesis from 6.108.10 to 6.111.2 in /Tools (GH-123567) (#123592)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Sep 2024 07:05:18 +0000 (09:05 +0200)]
[3.12] gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (GH-123571) (#123595)
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (GH-123571)
(cherry picked from commit
c3ed775899eedd47d37f8f1840345b108920e400 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sun, 1 Sep 2024 10:44:15 +0000 (12:44 +0200)]
[3.12] gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (GH-123342) (#123569)
gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (GH-123342)
(cherry picked from commit
75e72822a390df81ca11355d8e0aac88e4046c27 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sun, 1 Sep 2024 07:38:38 +0000 (09:38 +0200)]
[3.12] gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (GH-123551) (#123556)
Miss Islington (bot) [Sun, 1 Sep 2024 05:36:18 +0000 (07:36 +0200)]
[3.12] gh-123494: Improve documentation for ``webbrowser`` return types (GH-123495) (#123549)
gh-123494: Improve documentation for ``webbrowser`` return types (GH-123495)
Document the return value for ``webbrowser.open*()``.
(cherry picked from commit
0b6acfee04b30e7993314723c614625ddd90ae6e )
Co-authored-by: Aarni Koskela <akx@iki.fi>
Miss Islington (bot) [Sat, 31 Aug 2024 22:35:24 +0000 (00:35 +0200)]
[3.12] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (GH-123543)
gh-121285: Remove backtracking when parsing tarfile headers (GH-121286)
* 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: Seth Michael Larson <seth@python.org>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 31 Aug 2024 06:38:11 +0000 (08:38 +0200)]
[3.12] gh-123407: Enable translating literal and code blocks (GH-123408) (#123531)
gh-123407: Enable translating literal and code blocks (GH-123408)
(cherry picked from commit
5332d989af45378e6ae99aeda72bfa82042b8659 )
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Miss Islington (bot) [Sat, 31 Aug 2024 06:33:06 +0000 (08:33 +0200)]
[3.12] gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-113011) (GH-123528)
gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-113011)
When checking if the registering browser is the "OS preferred browser", do not use a substring search - that makes no sense: one can have a preferred browser that looks like a super-string of a known browser, e.g. "firefox-nightly" vs "firefox".
https://github.com/python/cpython/issues/108172 explains in more detail, and lays out a potential better future enhancement for this case of just using xdg-open. We'll go with this for now.
---------
(cherry picked from commit
10bf615bab9f832971a098f0a42b0d617aea6993 )
Co-authored-by: Oded Arbel <oded@geek.co.il>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Wei-Hsiang (Matt) Wang [Fri, 30 Aug 2024 17:09:55 +0000 (01:09 +0800)]
[3.12] gh-123492: Remove unnecessary `:func:` parentheses (gh-123493) (#123512)
Irit Katriel [Wed, 28 Aug 2024 17:41:40 +0000 (18:41 +0100)]
[3.12] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). (#123436)
(cherry picked from commit
61bef6245c4a32bf430d684ede8603f423d63284 )
Miss Islington (bot) [Wed, 28 Aug 2024 12:47:41 +0000 (14:47 +0200)]
[3.12] gh-120226: Fix test_sendfile_close_peer_in_the_middle_of_receiving on Linux >= 6.10 (GH-120227) (#123422)
gh-120226: Fix test_sendfile_close_peer_in_the_middle_of_receiving on Linux >= 6.10 (GH-120227)
The worst case is that the kernel buffers 17 pages with a page size of 64k.
(cherry picked from commit
a7584245661102a5768c643fbd7db8395fd3c90e )
Co-authored-by: Xi Ruoyao <xry111@xry111.site>
Miss Islington (bot) [Wed, 28 Aug 2024 07:37:06 +0000 (09:37 +0200)]
[3.12] gh-123254: Improve `tuple` C API docs with more info about errors (GH-123255) (#123415)
gh-123254: Improve `tuple` C API docs with more info about errors (GH-123255)
(cherry picked from commit
6f563e364d1a7902417573f842019746a79cdc1b )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Terry Jan Reedy [Mon, 26 Aug 2024 23:59:14 +0000 (19:59 -0400)]
[3.12] gh-121804: Backport idlelib.pyshell change (GH-121886) (#123366)
To aid future backports here.
Miss Islington (bot) [Mon, 26 Aug 2024 22:08:47 +0000 (00:08 +0200)]
[3.12] Further revise idlelib/Icons/README.text (GH-123364) (#123365)
In particular, add trademark derivative approval information.
(cherry picked from commit
fe85a8291d9aa11c9ce9e207c39ea0a0c35f9625 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 26 Aug 2024 02:40:13 +0000 (04:40 +0200)]
[3.12] Rewrite idlelib/Icons/README.txt (GH-123329) (#123331)
Rewrite idlelib/Icons/README.txt (GH-123329)
(cherry picked from commit
6401cdf90810252a0de1775cac2f4f2f7c6b1d5a )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 25 Aug 2024 22:57:16 +0000 (00:57 +0200)]
[3.12] gh-82378: Document the difference between sys.tracebacklimit and the limit arguments (GH-123286) (#123326)
gh-82378: Document the difference between sys.tracebacklimit and the limit arguments (GH-123286)
(cherry picked from commit
70bfef52b5734d6cd81c5e8ca9eaf85658916b04 )
Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
Miss Islington (bot) [Sun, 25 Aug 2024 20:18:57 +0000 (22:18 +0200)]
[3.12] gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (GH-123298) (#123320)
gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (GH-123298)
(cherry picked from commit
c535a49e9260ad0fac022474f6381836051c9758 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 25 Aug 2024 19:40:11 +0000 (21:40 +0200)]
[3.12] gh-122982: Extend the deprecation period for bool inversion by two years (GH-123306) (#123317)
gh-122982: Extend the deprecation period for bool inversion by two years (GH-123306)
(cherry picked from commit
249b083ed8b3cfdff30bf578d7f9d3c5e982a4eb )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Sat, 24 Aug 2024 22:37:11 +0000 (00:37 +0200)]
[3.12] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075) (#123104)
gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075)
This fixes CVE-2024-7592.
(cherry picked from commit
44e458357fca05ca0ae2658d62c8c595b048b5ef )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 24 Aug 2024 15:29:21 +0000 (17:29 +0200)]
[3.12] Docs: Fix Makefile syntax (GH-123287) (#123289)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Pablo Galindo Salgado [Fri, 23 Aug 2024 13:04:25 +0000 (14:04 +0100)]
[3.12] gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in the tokenizer (GH-123263) (#123265)
(cherry picked from commit
adc5190014efcf7b7a4c5dfc9998faa8345527ed )
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Serhiy Storchaka [Fri, 23 Aug 2024 06:27:03 +0000 (09:27 +0300)]
[3.12] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) (GH-122816)
Frames of methods in code and codeop modules was show with non-default
sys.excepthook.
Save correct tracebacks in sys.last_traceback and update __traceback__
attribute of sys.last_value and sys.last_exc.
(cherry picked from commit
e73e7a7abdc3fed252affcb1629df1b3c8fff2ef )
Donghee Na [Thu, 22 Aug 2024 16:37:40 +0000 (01:37 +0900)]
[3.12] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH… (#123237)
[3.12] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH_HINT`` (gh-123092)
(cherry picked from commit
297f2e093ec95800ae2184330b8408c875523467 )
Irit Katriel [Thu, 22 Aug 2024 09:22:43 +0000 (10:22 +0100)]
[3.12] gh-123142: Fix too wide source locations in tracebacks of exceptions from broken iterables in comprehensions (GH-123173). (#123210)
(cherry picked from commit
ec89620e5e147ba028a46dd695ef073a72000b84 )
Miss Islington (bot) [Mon, 19 Aug 2024 07:31:12 +0000 (09:31 +0200)]
[3.12] gh-123110: correct note about _Bool in the struct module docs (GH-123111) (#123127)
gh-123110: correct note about _Bool in the struct module docs (GH-123111)
(cherry picked from commit
b0f462d4c808d6fb1d381bba4932acd8309c1f3b )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)]
[3.12] gh-116789: Add more tests for `inspect.getmembers` (GH-116802) (#123130)
gh-116789: Add more tests for `inspect.getmembers` (GH-116802)
(cherry picked from commit
c15bfa9a71c8b7ce7ff6d8486f51aab566e8d81d )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 17 Aug 2024 21:04:34 +0000 (23:04 +0200)]
[3.12] Docs: Run ``latexmk`` in parallel when creating PDFs (GH-123113) (#123116)
Docs: Run ``latexmk`` in parallel when creating PDFs (GH-123113)
(cherry picked from commit
79c542b5cc774ba758acc2b2e3b6556934190e34 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 Aug 2024 09:03:04 +0000 (11:03 +0200)]
[3.12] fix typo in dis.rst (GH-121612) (#123096)
fix typo in dis.rst (GH-121612)
(cherry picked from commit
e9287ea426e8e1b930f1c3f0cb949a1416d29090 )
Co-authored-by: mathysEthical <110499907+mathysEthical@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 Aug 2024 08:35:50 +0000 (10:35 +0200)]
[3.12] gh-122519: Adding socket module shutdown() constants description (GH-122543) (#123094)
gh-122519: Adding socket module shutdown() constants description (GH-122543)
(cherry picked from commit
8a59deca59aa9452e71bb49e909199fbb41a5de7 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Thu, 15 Aug 2024 15:34:53 +0000 (17:34 +0200)]
[3.12] gh-112182: Replace StopIteration with RuntimeError for future (GH-113220) (GH-123033)
When an `StopIteration` raises into `asyncio.Future`, this will cause
a thread to hang. This commit address this by not raising an exception
and silently transforming the `StopIteration` with a `RuntimeError`,
which the caller can reconstruct from `fut.exception().__cause__`
(cherry picked from commit
4826d52338396758b2d6790a498c2a06eec19a86 )
Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
Miss Islington (bot) [Wed, 14 Aug 2024 21:30:44 +0000 (23:30 +0200)]
[3.12] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (#123025)
gh-123005: Add version added in enum.Flag.__len__ (GH-123007)
(cherry picked from commit
8e2dc7f380c7ffe6b0fe525b4d0558aaed9d7145 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 Aug 2024 14:12:34 +0000 (16:12 +0200)]
[3.12] gh-122255: Add black box tests in test_warnings (GH-122227) (GH-122819)
They are similar to white box tests for gh-86298 in test_importlib.
(cherry picked from commit
fe13c9baf40673fe369e98626dd87aea8b805aa2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 14 Aug 2024 12:32:42 +0000 (14:32 +0200)]
[3.12] gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (GH-122966) (#123009)
gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (GH-122966)
(cherry picked from commit
6ae942f412492b840fc6b43d39ba9133aa890ee7 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Tue, 13 Aug 2024 16:58:37 +0000 (18:58 +0200)]
[3.12] Fix `print` usage in `turtle` doctests (GH-122940) (#122978)
Fix `print` usage in `turtle` doctests (GH-122940)
(cherry picked from commit
901d94992eddd84ded2edc55235cbf22503c4de4 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 12 Aug 2024 18:43:53 +0000 (20:43 +0200)]
[3.12] gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949) (#122955)
gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949)
In the REPL, top level comments are followed by a primary, not secondary prompt.
Fix the places in the in the tutorial that use the latter.
(cherry picked from commit
be90648fb2de58b148dcc7553a08ca646911baf2 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Aug 2024 08:22:13 +0000 (10:22 +0200)]
[3.12] gh-99437: runpy: decode path-like objects before setting globals (#114838)
Co-authored-by: Kamil Turek <kamil.turek@hotmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Jason R. Coombs [Mon, 12 Aug 2024 01:03:03 +0000 (21:03 -0400)]
[3.12] gh-122903: Honor directories in zipfile.Path.glob. (GH-122908) (#122927)
(cherry picked from commit
6aa35f3002dda25858d47e702e750e2871e42a7c )
Miss Islington (bot) [Mon, 12 Aug 2024 00:35:17 +0000 (02:35 +0200)]
[3.12] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122923)
Miss Islington (bot) [Sun, 11 Aug 2024 21:09:13 +0000 (23:09 +0200)]
[3.12] gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (GH-122702) (#122915)
gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (GH-122702)
(cherry picked from commit
ea70439bd2b5a1c881342646f30942f527f61373 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Aug 2024 20:46:05 +0000 (22:46 +0200)]
[3.12] Docs: Standardise versionchanged text in weakref.rst (GH-122898) (#122912)
Docs: Standardise versionchanged text in weakref.rst (GH-122898)
(cherry picked from commit
db8b83c2b0247f1d9b15152bbfcfe4afc7e588ed )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 Aug 2024 21:31:59 +0000 (23:31 +0200)]
[3.12] GH-120794: Use example paths with multiple parts in pathlib docs (GH-122887) (#122896)
GH-120794: Use example paths with multiple parts in pathlib docs (GH-122887)
In the documentation of `PosixPath` and `WindowsPath`, and their `Pure*`
equivalents, use example paths with multiple non-anchor parts.
(cherry picked from commit
363374cf69a7e2292fe3f1c6bedd199088958cc2 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 Aug 2024 20:58:38 +0000 (22:58 +0200)]
[3.12] gh-122868: Add more lower bounds for sphinxcontrib dependencies (GH-122891) (#122894)
gh-122868: Add more lower bounds for sphinxcontrib dependencies (GH-122891)
(cherry picked from commit
0959142e4defcf7a9fcbbb228d2e2b97a074f7ea )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Aug 2024 22:33:38 +0000 (00:33 +0200)]
[3.12] gh-122868: Add lower bounds for sphinxcontrib dependencies (GH-122870) (#122872)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Aug 2024 17:12:41 +0000 (19:12 +0200)]
[3.12] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605) (#122592)
On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (GH-120083 (comment)).
The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE.
---------
(cherry picked from commit
5a7f7c48644baf82988f30bcb43e03dcfceb75dd )
Co-authored-by: John Riggles <jriggles@icloud.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 9 Aug 2024 16:55:36 +0000 (18:55 +0200)]
[3.12] gh-79846: Make ssl.create_default_context() ignore invalid certificates (GH-91740) (#122769)
An error in one certificate should not cause the whole thing to fail.
(cherry picked from commit
9e551f9b351440ebae79e07a02d0e4a1b61d139e )
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 9 Aug 2024 16:04:29 +0000 (18:04 +0200)]
[3.12] gh-113785: csv: fields starting with escapechar are not quoted (GH-122110) (GH-122259)
(cherry picked from commit
a3327dbfd4db9e5ad1ca514963d503abbbbfede7 )
Co-authored-by: Mikołaj Kuranowski <mkuranowski@gmail.com>
Victor Stinner [Fri, 9 Aug 2024 14:33:24 +0000 (16:33 +0200)]
[3.12] gh-122695: Fix double-free when using `gc.get_referents` with a freed `_asyncio.FutureIter` (#122837) (#122859)
[3.13] gh-122695: Fix double-free when using `gc.get_referents` with a freed `_asyncio.FutureIter` (#122837)
* Backport #122834 for 3.13
(cherry picked from commit
e8fb088dbaa71dd5f0146b2f4a8f7ecbe2ce9625 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Fri, 9 Aug 2024 07:27:11 +0000 (09:27 +0200)]
[3.12] gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776) (GH-122822)
(cherry picked from commit
0d9c123d1ac4f3dd30bdef5182049d9a831eca10 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Serhiy Storchaka [Thu, 8 Aug 2024 06:49:50 +0000 (09:49 +0300)]
[3.12] gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH-122664) (GH-122807)
Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for
positional-or-keyword parameter is passed by keyword.
There was only one such case in the stdlib -- the TypeVar constructor.
(cherry picked from commit
540fcc62f5da982b79504221cac01bfab8b73ba1 )