| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
and link to it from `collections.abc` docs (#123544) (#123792)
Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>
|
| |
|
|
|
|
|
|
| |
(#123534)
Add tests for genops() and dis().
(cherry picked from commit e5a567b0a721c26c79530249d9aa159afbd11955)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
(#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>
|
| |
|
|
|
|
|
| |
(GH-122799) (#122805)
(cherry picked from commit d2e5be1f39bc3d48c7bc8c146c4bcadee266672a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
urllib.parse.urlunsplit() (GH-123179) (#123188)
(cherry picked from commit 90c892efeaae28bd849a01b42842f19dcd67b9f4)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-122788) (#122815)
(cherry picked from commit 6094c6fc2fc30eb9ee7c2f9f1088a851f71bf1b9)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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)
|
| |
|
|
|
|
|
|
|
|
| |
(#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.)
|
| |
|
|
|
|
|
| |
(GH-123417) (#123733)
(cherry picked from commit 327463aef173a1cb9659bccbecfff4530bbe6bbf)
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
|
| |
|
|
|
|
|
| |
(#123667)
(cherry picked from commit 7d2c2f24daf7a2abd166bb51652ba55c6f55695f)
Co-authored-by: Alexander Bessman <bessman@users.noreply.github.com>
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
| |
to no longer hide exceptions (GH-123214) (#123258)
Co-authored-by: Bar Harel <bharel@barharel.com>
|
| |
|
|
|
|
|
|
|
|
| |
(#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>
|
| |
|
| |
(cherry picked from commit 2f20f5a9bc7dafdb3c2ae723da90eca1727a95f7)
|
| |
|
|
|
|
|
| |
(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>
|
| |
|
|
| |
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
(GH-123655) (#123741)
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
(#123730)
(cherry picked from commit 092abc4060768f2ae8b7b9c133558bf05bfeff88)
Co-authored-by: Zachary Ware <zach@python.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
be called (GH-123394) (GH-123665)
(cherry picked from commit c08ede27140121a919e884c7e8dfdce7b1a2e906)
Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
| |
(#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>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
| |
(cherry picked from commit d2eafe2f48aac31aa8a152620bdfd0f2a274ee1d)
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
(cherry picked from commit 56b00f4705634af2861a8aa9c2eb5769012220f0)
|
| |
|
|
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
| |
(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>
|
| | |
|
| |
|
|
|
| |
(cherry picked from commit 68fe5758bf1900ffdcdf7cd9e40f5018555a39d4)
Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
| |
(#123603)
[3.12] gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572)
(cherry picked from commit f95fc4de115ae03d7aa6dece678240df085cb4f6)
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
(GH-123576)
|
| |
|
|
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
| |
(GH-123567) (#123592)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
| |
|
|
|
|
|
|
| |
`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>
|
| |
|
|
|
|
|
|
| |
`__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>
|
| |
|
|
| |
(GH-123551) (#123556)
|
| |
|
|
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
| |
(#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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| | |
|
| |
|
|
|
| |
(GH-123420). (#123436)
(cherry picked from commit 61bef6245c4a32bf430d684ede8603f423d63284)
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
(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>
|
| |
|
| |
To aid future backports here.
|