]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.12] gh-117752: Autoconf: fix -fno-semantic-interposition check (GH-117789) (#117800)
Miss Islington (bot) [Fri, 12 Apr 2024 07:53:22 +0000 (09:53 +0200)] 
[3.12] gh-117752: Autoconf: fix -fno-semantic-interposition check (GH-117789) (#117800)

Force the compiler to issue an error if the flag is not supported.
(cherry picked from commit 49fc1414b52b31f6ad0408775d160ec0559c33bb)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-117752: Autoconf: store all LLVM profile data in the build directory (GH...
Miss Islington (bot) [Fri, 12 Apr 2024 05:39:14 +0000 (07:39 +0200)] 
[3.12] gh-117752: Autoconf: store all LLVM profile data in the build directory (GH-117790) (#117795)

This prevents spurious 'env changed' and llvm-profdata merge errors.

(cherry picked from commit 396b831850f0f364d584db4407a5d633f33e571c)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-117233: Detect support for several hashes at hashlib build time (GH-117234...
Miss Islington (bot) [Thu, 11 Apr 2024 18:36:31 +0000 (20:36 +0200)] 
[3.12] gh-117233: Detect support for several hashes at hashlib build time (GH-117234) (#117767)

gh-117233: Detect support for several hashes at hashlib build time (GH-117234)

Detect libcrypto BLAKE2, Shake, SHA3, and Truncated-SHA512 support at hashlib build time

GH-GH- BLAKE2

While OpenSSL supports both "b" and "s" variants of the BLAKE2 hash
function, other cryptographic libraries may lack support for one or both
of the variants. This commit modifies `hashlib`'s C code to detect
whether or not the linked libcrypto supports each BLAKE2 variant, and
elides references to each variant's NID accordingly. In cases where the
underlying libcrypto doesn't fully support BLAKE2, CPython's
`./configure` script can be given the following flag to use CPython's
interned BLAKE2 implementation: `--with-builtin-hashlib-hashes=blake2`.

GH-GH- SHA3, Shake, & truncated SHA512.

Detect BLAKE2, SHA3, Shake, & truncated SHA512 support in the
OpenSSL-ish libcrypto library at build time.  This helps allow hashlib's
`_hashopenssl` to be used with libraries that do not to support every
algorithm that upstream OpenSSL does.  Such as AWS-LC & BoringSSL.

(cherry picked from commit b8eaad30090b46f115dfed23266305b6546fb364)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
2 years ago[3.12] gh-104269: Document `glob.glob` duplicates when using multiple `**` patterns...
Miss Islington (bot) [Thu, 11 Apr 2024 17:44:46 +0000 (19:44 +0200)] 
[3.12] gh-104269: Document `glob.glob` duplicates when using multiple `**` patterns (GH-105406) (#117757)

gh-104269: Document `glob.glob` duplicates when using multiple `**` patterns (GH-105406)
(cherry picked from commit c06be6bbb8d138dde50c0a07cbd64496bee537c5)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2 years ago[3.12] gh-101549: fix documentation of xml.etree.ElementInclude (GH-101550) (#117754)
Miss Islington (bot) [Thu, 11 Apr 2024 14:53:27 +0000 (16:53 +0200)] 
[3.12] gh-101549: fix documentation of xml.etree.ElementInclude (GH-101550) (#117754)

Co-authored-by: Mikhail B <55960560+mbel0@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2 years ago[3.12] Fix markup of `win32_ver` in `platform.rst` (GH-116492) (#117753)
Miss Islington (bot) [Thu, 11 Apr 2024 14:20:29 +0000 (16:20 +0200)] 
[3.12] Fix markup of `win32_ver` in `platform.rst` (GH-116492) (#117753)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not available ...
Kirill Podoprigora [Thu, 11 Apr 2024 14:18:28 +0000 (17:18 +0300)] 
[3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not available (GH-117588) (GH-117718)

(cherry picked from commit dfcae4379f2cc4d352a180f9fef2381570aa9bcb)

2 years ago[3.12] gh-117711: Only check for 'test/wheeldata' when it's actually used (GH-117712...
Miss Islington (bot) [Thu, 11 Apr 2024 10:22:17 +0000 (12:22 +0200)] 
[3.12] gh-117711: Only check for 'test/wheeldata' when it's actually used (GH-117712) (#117749)

gh-117711: Only check for 'test/wheeldata' when it's actually used (GH-117712)

It's possible to build Python with option `--with-wheel-pkg-dir`
pointing to a custom wheel directory. Don't include the directory in the test
set if the wheels are used from a different location.

(cherry picked from commit d4963871b03cc76fe7d9648d022d12007585beae)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2 years ago[3.12] gh-117606: Truncate extremely long error message in `test_exceptions` (GH...
Miss Islington (bot) [Thu, 11 Apr 2024 07:53:26 +0000 (09:53 +0200)] 
[3.12] gh-117606: Truncate extremely long error message in `test_exceptions` (GH-117670) (#117745)

gh-117606: Truncate extremely long error message in `test_exceptions` (GH-117670)
(cherry picked from commit 02f1385f8ad6bf45376377c41f106b386d3a7eb0)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-11770...
Miss Islington (bot) [Wed, 10 Apr 2024 14:38:10 +0000 (16:38 +0200)] 
[3.12] gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-117702) (#117713)

gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-117702)

The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new
versions of GCC implement `__has_feature`, the `defined(__has_feature)`
check still fails on GCC so we don't use that code path.
(cherry picked from commit 79eec66e3dc277ea6ebad8c0b33756eea6a7ab3b)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 years ago[3.12] gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped `builtin_or_meth...
Miss Islington (bot) [Wed, 10 Apr 2024 14:17:15 +0000 (16:17 +0200)] 
[3.12] gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped `builtin_or_method` (GH-117699) (#117708)

* gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped `builtin_or_method` (GH-117699)
(cherry picked from commit 4bb7d121bc0a3fd00a3c72cd915b5dd8fac5616e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-117360: Clearer wording in os.path.lexists() docs (GH-117679) (#117701)
Miss Islington (bot) [Tue, 9 Apr 2024 21:11:07 +0000 (23:11 +0200)] 
[3.12] gh-117360: Clearer wording in os.path.lexists() docs (GH-117679) (#117701)

(cherry picked from commit 73906d5c908c1e0b73c5436faeff7d93698fc074)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Zachary Ware <zach@python.org>
2 years ago[3.12] gh-117597: Clarify exception handling in the tutorial (GH-117681) (#117700)
Miss Islington (bot) [Tue, 9 Apr 2024 21:06:35 +0000 (23:06 +0200)] 
[3.12] gh-117597: Clarify exception handling in the tutorial (GH-117681) (#117700)

(cherry picked from commit a05068db0cb43337d20a936d919b9d88c35d9818)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
2 years ago[3.12] gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543) (#117689)
Miss Islington (bot) [Tue, 9 Apr 2024 18:17:21 +0000 (20:17 +0200)] 
[3.12] gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543) (#117689)

gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543)

Moves the validation for invalid years in the C implementation of the `datetime` module into a common location between `fromisoformat` and `fromisocalendar`, which improves the error message and fixes a failed assertion when parsing invalid ISO 8601 years using one of the "ISO weeks" formats.

---------

(cherry picked from commit d5f1139c79525b4e7e4e8ad8c3e5fb831bbc3f28)

Co-authored-by: Vlad4896 <166005126+Vlad4896@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 years agoPost 3.12.3
Thomas Wouters [Tue, 9 Apr 2024 15:25:54 +0000 (17:25 +0200)] 
Post 3.12.3

2 years agoPython 3.12.3 v3.12.3
Thomas Wouters [Tue, 9 Apr 2024 07:16:57 +0000 (09:16 +0200)] 
Python 3.12.3

2 years ago[3.12] gh-111726: Explicitly close database connections in sqlite3 doctests (GH-11173...
Miss Islington (bot) [Mon, 8 Apr 2024 09:59:02 +0000 (11:59 +0200)] 
[3.12] gh-111726: Explicitly close database connections in sqlite3 doctests (GH-111730) (#117630)

(cherry picked from commit a7702663e3f7efc81f0b547f1f13ba64c4e5addc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] Fix reference in code.rs (#117615) (#117628)
Alex Waygood [Mon, 8 Apr 2024 09:18:44 +0000 (10:18 +0100)] 
[3.12] Fix reference in code.rs (#117615) (#117628)

Co-authored-by: Anita Hammer <166057949+anitahammer@users.noreply.github.com>
Fix reference in code.rst (#117615)

2 years ago[3.12] gh-111726: Remove some doctests from sqlite3 docs (GH-117623) (#117625)
Miss Islington (bot) [Mon, 8 Apr 2024 08:18:55 +0000 (10:18 +0200)] 
[3.12] gh-111726: Remove some doctests from sqlite3 docs (GH-117623) (#117625)

* remove load extension doctest since we cannot skip it conditionally
* remove sys.unraisablehook example; using unraisable hooks is not "an
  improved debug experience"

(cherry picked from commit e338e1a4ec5e43a02447f4ec80320d7fc12b3ed4)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-111726: Cleanup test files after running sqlite3 doctest (GH-117604) (...
Miss Islington (bot) [Mon, 8 Apr 2024 06:42:42 +0000 (08:42 +0200)] 
[3.12] gh-111726: Cleanup test files after running sqlite3 doctest (GH-117604) (#117622)

Remove all temporary databases in a dedicated 'testcleanup' step
at the end of the file.
(cherry picked from commit a453f5ef9d0b89bd00488d3814c6f0a2886342b8)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 years ago[3.12] gh-117594: Require cpu resource to test_search_anchor_at_beginning (g… (gh...
Donghee Na [Mon, 8 Apr 2024 00:23:55 +0000 (09:23 +0900)] 
[3.12] gh-117594: Require cpu resource to test_search_anchor_at_beginning (g… (gh-117616)

gh-117594: Require cpu resource to test_search_anchor_at_beginning (gh-117595)

(cherry picked from commit 784623c63c45a4d13dfb04318c39fdb1ab790218)

2 years ago[3.12] gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113...
Miss Islington (bot) [Fri, 5 Apr 2024 15:33:52 +0000 (17:33 +0200)] 
[3.12] gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113) (GH-117571)

gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113)
(cherry picked from commit e569f9132b5bdc1c103116a020e19e3ccc20cf34)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.12] gh-109120: Fix syntax error in handlinh of incorrect star expressions… (#117465)
Grigoriev Semyon [Thu, 4 Apr 2024 15:22:43 +0000 (18:22 +0300)] 
[3.12] gh-109120: Fix syntax error in handlinh of incorrect star expressions… (#117465)

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

(cherry picked from commit c97d3af2391e62ef456ef2365d48ab9b8cdbe27b)

2 years ago[3.12] [doc] Update logging documentation to improve grammar and elucidate an example...
Miss Islington (bot) [Thu, 4 Apr 2024 13:19:10 +0000 (15:19 +0200)] 
[3.12] [doc] Update logging documentation to improve grammar and elucidate an example. (GH-117541) (GH-117542)

(cherry picked from commit df912c913a3d94995b379f1e19fe0a79acab6169)

2 years ago[3.12] gh-117521: Improve typing.TypeGuard docstring (GH-117522) (#117538)
Miss Islington (bot) [Thu, 4 Apr 2024 11:04:16 +0000 (13:04 +0200)] 
[3.12] gh-117521: Improve typing.TypeGuard docstring (GH-117522) (#117538)

(cherry picked from commit b32789ccb91bbe43e88193f68b1364a8da6d9866)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-117467: Add preserving of mailbox owner on flush (GH-117510) (GH-117537)
Miss Islington (bot) [Thu, 4 Apr 2024 10:55:42 +0000 (12:55 +0200)] 
[3.12] gh-117467: Add preserving of mailbox owner on flush (GH-117510) (GH-117537)

(cherry picked from commit 3f5bcc86d0764b691087e8412941e947554c93fd)

Co-authored-by: Tony Mountifield <tony@mountifield.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-117267: Ensure DirEntry.stat().st_ctime still contains creation time during deprec...
Miss Islington (bot) [Wed, 3 Apr 2024 22:32:09 +0000 (00:32 +0200)] 
gh-117267: Ensure DirEntry.stat().st_ctime still contains creation time during deprecation period (GH-117354)

(cherry picked from commit 985917dc8d34e2d2f717f7a981580a8dcf18d53a)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.12] gh-117166: Ignore empty and temporary dirs in `test_makefile` (GH-117190)...
Miss Islington (bot) [Wed, 3 Apr 2024 13:32:55 +0000 (15:32 +0200)] 
[3.12] gh-117166: Ignore empty and temporary dirs in `test_makefile` (GH-117190) (GH-117367)

gh-117166: Ignore empty and temporary dirs in `test_makefile` (GH-117190)
(cherry picked from commit d9cfe7e565a6e2dc15747a904736264e31a10be4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-91565: Update issue tracker URL in error message. (GH-117450) (#117497)
Miss Islington (bot) [Wed, 3 Apr 2024 09:10:12 +0000 (11:10 +0200)] 
[3.12] gh-91565: Update issue tracker URL in error message. (GH-117450) (#117497)

gh-91565: Update issue tracker URL in error message. (GH-117450)

* Update issue tracker URL in commit message.

* Also update issue tracker URL in comment.
(cherry picked from commit 8987a5c809343ae0dd2b8e607bf2c32a87773127)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
Miss Islington (bot) [Tue, 2 Apr 2024 13:29:32 +0000 (15:29 +0200)] 
[3.12] 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>
2 years ago[3.12] Link to the Python type system specification (GH-117400) (#117448)
Miss Islington (bot) [Tue, 2 Apr 2024 09:29:10 +0000 (11:29 +0200)] 
[3.12] Link to the Python type system specification (GH-117400) (#117448)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.12] Docs: specify XML document name in xml.etree.elementtree example (GH-24223...
Miss Islington (bot) [Mon, 1 Apr 2024 20:02:34 +0000 (22:02 +0200)] 
[3.12] Docs: specify XML document name in xml.etree.elementtree example (GH-24223) (#117429)

(cherry picked from commit 9dae05ee59eeba0e67af2a46f2a2907c9f8d7e4a)

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

(cherry picked from commit fc2071687b708598264a3403b7f9104667c1092f)

Co-authored-by: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com>
2 years ago[3.12] build(deps): bump actions/add-to-project from 0.6.0 to 1.0.0 (GH-117415) ...
Miss Islington (bot) [Mon, 1 Apr 2024 10:35:55 +0000 (12:35 +0200)] 
[3.12] build(deps): bump actions/add-to-project from 0.6.0 to 1.0.0 (GH-117415) (#117420)

build(deps): bump actions/add-to-project from 0.6.0 to 1.0.0 (GH-117415)
(cherry picked from commit 3bb12e407c183946471272f8aee098e54e62a333)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago[3.12] gh-102190: Add additional zipfile `pwd=` arg docstrings (gh-102195) (GH-117408)
Miss Islington (bot) [Mon, 1 Apr 2024 01:53:51 +0000 (03:53 +0200)] 
[3.12] gh-102190: Add additional zipfile `pwd=` arg docstrings (gh-102195) (GH-117408)

gh-102190: Add additional zipfile `pwd=` arg docstrings (gh-102195)

This just documents the parameter that already exists.

---------

(cherry picked from commit a32d6939486d7f90ee57e215077f6116e19de24d)

Co-authored-by: Deborah <32307299+dlwrnc@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh-
Miss Islington (bot) [Sun, 31 Mar 2024 21:24:28 +0000 (23:24 +0200)] 
[3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh-

2 years ago[3.12] gh-117347: Fix test_clinic side effects (#117363) (#117365)
Victor Stinner [Fri, 29 Mar 2024 11:04:25 +0000 (12:04 +0100)] 
[3.12] gh-117347: Fix test_clinic side effects (#117363) (#117365)

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

Save/restore converters in ClinicWholeFileTest and
ClinicExternalTest.

(cherry picked from commit 35b6c4a4da201a947b2ceb96ae4c0d83d4d2df4f)

2 years ago[3.12] Fix reversed assertRegex checks in test_ssl. (GH-117351) (#117359)
Miss Islington (bot) [Fri, 29 Mar 2024 01:19:04 +0000 (02:19 +0100)] 
[3.12] Fix reversed assertRegex checks in test_ssl. (GH-117351) (#117359)

Fix reversed assertRegex checks in test_ssl. (GH-117351)
(cherry picked from commit 2e9be80c99f635c2f7761e8356b0260922d6e7a6)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.12] gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111...
Miss Islington (bot) [Fri, 29 Mar 2024 00:36:14 +0000 (01:36 +0100)] 
[3.12] gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111) (#117357)

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>
2 years ago[3.12] gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs (GH-117343...
Christopher Chianelli [Thu, 28 Mar 2024 22:27:16 +0000 (18:27 -0400)] 
[3.12] gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs (GH-117343) (GH-117345)

2 years ago[3.12] gh-114331: Skip decimal test_maxcontext_exact_arith on s390x (GH-117326) ...
Miss Islington (bot) [Thu, 28 Mar 2024 17:28:20 +0000 (18:28 +0100)] 
[3.12] gh-114331: Skip decimal test_maxcontext_exact_arith on s390x (GH-117326) (#117327)

gh-114331: Skip decimal test_maxcontext_exact_arith on s390x (GH-117326)
(cherry picked from commit 6702d2bf6edcd5b5415e17837383623b9d76a5b8)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-117310: Remove extra DECREF on "no ciphers" error path in `_ssl._SSLContext...
Miss Islington (bot) [Thu, 28 Mar 2024 17:04:57 +0000 (18:04 +0100)] 
[3.12] gh-117310: Remove extra DECREF on "no ciphers" error path in `_ssl._SSLContext` constructor (GH-117309) (GH-117317)

gh-117310: Remove extra DECREF on "no ciphers" error path in `_ssl._SSLContext` constructor (GH-117309)

Remove extra self DECREF on ssl "no ciphers" error path.

This doesn't come up in practice because nobody links against a broken
OpenSSL library that provides nothing.
(cherry picked from commit 8cb7d7ff86a1a2d41195f01ba4f218941dd7308c)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.12] gh-117178: Recover lazy loading of self-referential modules (GH-117179) (...
Miss Islington (bot) [Thu, 28 Mar 2024 11:15:16 +0000 (12:15 +0100)] 
[3.12] gh-117178: Recover lazy loading of self-referential modules (GH-117179) (#117319)

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
2 years ago[3.12] gh-99108: Update and check HACL* version information (GH-117295) (GH-117302)
Miss Islington (bot) [Wed, 27 Mar 2024 22:16:19 +0000 (23:16 +0100)] 
[3.12] gh-99108: Update and check HACL* version information (GH-117295) (GH-117302)

gh-99108: Update and check HACL* version information (GH-117295)

(cherry picked from commit 669ef49c7d42f35da6f7ee280102353b9b37f83e)

Co-authored-by: Seth Michael Larson <seth@python.org>
2 years ago[3.12] gh-104242: Enable test_is_char_device_true in pathlib test on all platform...
AN Long [Wed, 27 Mar 2024 08:42:37 +0000 (16:42 +0800)] 
[3.12] gh-104242: Enable test_is_char_device_true in pathlib test on all platform (GH-116983) (GH-117277)

(cherry picked from commit af1b0e94400d1bf732466d675054df8cf7dfb62d)

2 years ago[3.12] Change links on the index page (GH-117230) (#117268)
Miss Islington (bot) [Tue, 26 Mar 2024 19:14:20 +0000 (20:14 +0100)] 
[3.12] Change links on the index page (GH-117230) (#117268)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 years ago[3.12] gh-115538: Use isolate mode when running venv test_multiproces… (#117264)
AN Long [Tue, 26 Mar 2024 16:53:37 +0000 (00:53 +0800)] 
[3.12] gh-115538: Use isolate mode when running venv test_multiproces… (#117264)

[3.12] gh-115538: Use isolate mode when running venv test_multiprocessing_recursion() (GH-117116)
(cherry picked from commit 4ec347760f98b156c6a2d42ca397af6b0b6ecc50)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] pre-commit: add `check-case-conflict` and `check-merge-conflict` (GH-117259...
Miss Islington (bot) [Tue, 26 Mar 2024 14:12:36 +0000 (15:12 +0100)] 
[3.12] pre-commit: add `check-case-conflict` and `check-merge-conflict` (GH-117259) (#117260)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 years ago[3.12] gh-66543: Fix mimetype.guess_type() (GH-117217) (GH-117256)
Miss Islington (bot) [Tue, 26 Mar 2024 11:43:36 +0000 (12:43 +0100)] 
[3.12] gh-66543: Fix mimetype.guess_type() (GH-117217) (GH-117256)

Fix parsing of the following corner cases:

* URLs with only a host name
* URLs containing a fragment
* URLs containing a query
* filenames with only a UNC sharepoint on Windows

(cherry picked from commit 9654daf793b534b44a831c80f43505ab9e380f1f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2 years ago[3.12] gh-83845: Add tests for operator module (GH-115883) (#117253)
Miss Islington (bot) [Tue, 26 Mar 2024 09:37:41 +0000 (10:37 +0100)] 
[3.12] gh-83845: Add tests for operator module (GH-115883) (#117253)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
2 years ago[3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250)
Victor Stinner [Tue, 26 Mar 2024 08:04:28 +0000 (09:04 +0100)] 
[3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (#117250)

* gh-115122: Add --bisect option to regrtest (#115123)

* test.bisect_cmd now exit with code 0 on success, and code 1 on
  failure. Before, it was the opposite.
* test.bisect_cmd now runs the test worker process with
  -X faulthandler.
* regrtest RunTests: Add create_python_cmd() and bisect_cmd()
  methods.

(cherry picked from commit 1e5719a663d5b1703ad588dda4fccd763c7d3e99)

* gh-115720: Show number of leaks in huntrleaks progress reports (GH-115726)

Instead of showing a dot for each iteration, show:
- '.' for zero (on negative) leaks
- number of leaks for 1-9
- 'X' if there are more leaks

This allows more rapid iteration: when bisecting, I don't need
to wait for the final report to see if the test still leaks.

Also, show the full result if there are any non-zero entries.
This shows negative entries, for the unfortunate cases where
a reference is created and cleaned up in different runs.

Test *failure* is still determined by the existing heuristic.

(cherry picked from commit af5f9d682c20c951b90e3c020eeccac386c9bbb0)

* gh-83434: Disable XML in regrtest when -R option is used (#117232)

(cherry picked from commit d52bdfb19fadd7614a0e5abaf68525fc7300e841)

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.12] gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203) (GH-117244)
Miss Islington (bot) [Tue, 26 Mar 2024 02:08:23 +0000 (03:08 +0100)] 
[3.12] gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203) (GH-117244)

gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203)

This fixes XML unittest fallout from the https://github.com/python/cpython/issues/115398 security fix.  When configured using `--with-system-expat` on systems with older pre 2.6.0 versions of libexpat, our unittests were failing.

* sax|etree: Simplify Expat version guard where simplifiable

Idea by Matěj Cepl

* sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0

This *does not fix* the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix.  (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package)
(cherry picked from commit 9f74e86c78853c101a23e938f8e32ea838d8f62e)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
2 years ago[3.12] gh-99108: Refresh HACL*; update modules accordingly; fix namespacing (GH-11723...
Gregory P. Smith [Tue, 26 Mar 2024 01:43:24 +0000 (18:43 -0700)] 
[3.12] gh-99108: Refresh HACL*; update modules accordingly; fix namespacing (GH-117237) (GH-117243)

Pulls in a new update from https://github.com/hacl-star/hacl-star and fixes our C "namespacing" done by `Modules/_hacl/refresh.sh`.

Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
2 years ago[3.12] Sync main docs and docstring for median_grouped(). (gh-117214) (gh-117241)
Miss Islington (bot) [Mon, 25 Mar 2024 23:56:36 +0000 (00:56 +0100)] 
[3.12] Sync main docs and docstring for median_grouped(). (gh-117214) (gh-117241)

2 years ago[3.12] Add information about negative indexes to sequence datamodel doc (GH-110903...
Miss Islington (bot) [Mon, 25 Mar 2024 22:40:28 +0000 (23:40 +0100)] 
[3.12] Add information about negative  indexes to sequence datamodel doc (GH-110903) (#117238)

Co-authored by Terry Jan Reedy
(cherry picked from commit c2276176d543a2fc2d57709c2787f99850fbb073)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 years ago[3.12] Minor markup and grammar fixes in the statistics docs (gh-117216) (gh-117218)
Miss Islington (bot) [Mon, 25 Mar 2024 14:33:15 +0000 (15:33 +0100)] 
[3.12] Minor markup and grammar fixes in the statistics docs (gh-117216) (gh-117218)

2 years ago[3.12] gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() (GH-32011)...
Miss Islington (bot) [Mon, 25 Mar 2024 10:21:31 +0000 (11:21 +0100)] 
[3.12] gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() (GH-32011) (GH-117209)

(cherry picked from commit f11d0d8be8af28e1368c3c7c116218cf65ddf93e)

Co-authored-by: Erik Soma <stillusingirc@gmail.com>
2 years ago[3.12] GH-115986 Docs: promote pprint.pp usage as a default (GH-116614) (#117196)
Miss Islington (bot) [Sun, 24 Mar 2024 15:14:47 +0000 (16:14 +0100)] 
[3.12] GH-115986 Docs: promote pprint.pp usage as a default (GH-116614) (#117196)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 years ago[3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)
Miss Islington (bot) [Sun, 24 Mar 2024 10:09:08 +0000 (11:09 +0100)] 
[3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)

Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] docs:fix over-linking in dataclasses.rst (GH-117005) (#117163)
Carol Willing [Fri, 22 Mar 2024 19:12:00 +0000 (12:12 -0700)] 
[3.12] docs:fix over-linking in dataclasses.rst (GH-117005) (#117163)

* docs: fix over-linking in dataclasses.rst (#117005)

(cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06)

* [3.12] docs: fix over-linking in dataclasses.rst (GH-117005)
(cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
---------

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 years ago[3.12] gh-117084: Fix ZIP file extraction for directory entry names with backslashes...
Serhiy Storchaka [Fri, 22 Mar 2024 18:35:12 +0000 (20:35 +0200)] 
[3.12] gh-117084: Fix ZIP file extraction for directory entry names with backslashes on Windows (GH-117129) (GH-117162)

(cherry picked from commit 567ab3bd15398c8c7b791f3e376ae3e3c0bbe079)

2 years ago[3.12] [docs] Fix typo in docstring and add example to logging cookbook. (GH-117157...
Miss Islington (bot) [Fri, 22 Mar 2024 17:50:02 +0000 (18:50 +0100)] 
[3.12] [docs] Fix typo in docstring and add example to logging cookbook. (GH-117157) (GH-117159)

(cherry picked from commit 00baaa21de229a6db80ff2b84c2fd6ad1999a24c)

2 years agoFix get_packagefamilyname helper function on Windows 32-bit (GH-117153)
Miss Islington (bot) [Fri, 22 Mar 2024 15:26:29 +0000 (16:26 +0100)] 
Fix get_packagefamilyname helper function on Windows 32-bit (GH-117153)

(cherry picked from commit 3be9b9d8722696b95555937bb211dc4cda714d56)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.12] gh-117127: glob tests: Reopen dir_fd to pick up directory changes (GH-117128...
Miss Islington (bot) [Fri, 22 Mar 2024 10:24:06 +0000 (11:24 +0100)] 
[3.12] gh-117127: glob tests: Reopen dir_fd to pick up directory changes (GH-117128) (GH-117150)

gh-117127: glob tests: Reopen dir_fd to pick up directory changes (GH-117128)
(cherry picked from commit 42ae924d278c48a719fb0ab86357f3235a9f7ab9)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119)
infohash [Fri, 22 Mar 2024 09:47:52 +0000 (15:17 +0530)] 
[3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119)

gh-75988: Fix issues with autospec ignoring wrapped object (#115223)

* set default return value of functional types as _mock_return_value

* added test of wrapping child attributes

* added backward compatibility with explicit return

* added docs on the order of precedence

* added test to check default return_value

(cherry picked from commit 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)

2 years ago[3.12] gh-117061: Fix test_posix.test_sched_setaffinity() on RHEL9 (GH-117126) (...
Miss Islington (bot) [Thu, 21 Mar 2024 22:37:06 +0000 (23:37 +0100)] 
[3.12] gh-117061: Fix test_posix.test_sched_setaffinity() on RHEL9 (GH-117126) (#117137)

gh-117061: Fix test_posix.test_sched_setaffinity() on RHEL9 (GH-117126)

On RHEL9, sched_setaffinity(0, []) does not fail.
(cherry picked from commit 50f9b0b1e0fb181875751cef951351ed007b6397)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-116333: Relax error string text expectations in SSL-related tests (GH-11633...
Miss Islington (bot) [Thu, 21 Mar 2024 20:46:20 +0000 (21:46 +0100)] 
[3.12] gh-116333: Relax error string text expectations in SSL-related tests (GH-116334) (GH-117136)

gh-116333: Relax error string text expectations in SSL-related tests (GH-116334)

* Relax error string text expectations in SSL-related tests

As suggested [here][1], this change relaxes the OpenSSL error string
text expectations in a number of tests. This was specifically done in
support of more easily building CPython [AWS-LC][2], but because AWS-LC
is a fork of [BoringSSL][3], it should increase compatibility with that
library as well.

In addition to the error string relaxations, we also add some guards
around the `tls-unique` channel binding being used with TLSv1.3, as that
feature (described in [RFC 6929][4]) is [not defined][5] for TLSv1.3.

[1]: https://discuss.python.org/t/support-building-ssl-and-hashlib-modules-against-aws-lc/44505/4
[2]: https://github.com/aws/aws-lc
[3]: https://github.com/google/boringssl
[4]: https://datatracker.ietf.org/doc/html/rfc5929GH-section-3
[5]: https://datatracker.ietf.org/doc/html/rfc8446GH-appendix-C.5
(cherry picked from commit c85d84166a84a5cb2d724012726bad34229ad24e)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
2 years ago[3.12] Remove more stray backticks from NEWS files (GH-115374) (#117118)
Hugo van Kemenade [Thu, 21 Mar 2024 11:57:40 +0000 (13:57 +0200)] 
[3.12] Remove more stray backticks from NEWS files (GH-115374) (#117118)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] Fix sort order for "locale encoding" glossary item (GH-115794) (#117102)
Miss Islington (bot) [Wed, 20 Mar 2024 21:07:31 +0000 (22:07 +0100)] 
[3.12] Fix sort order for "locale encoding" glossary item (GH-115794) (#117102)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.12] gh-116773: Fix overlapped memory corruption crash (GH-116774) (#117078)
jkriegshauser [Wed, 20 Mar 2024 20:10:15 +0000 (13:10 -0700)] 
[3.12] gh-116773: Fix overlapped memory corruption crash (GH-116774) (#117078)

Manual backport of gh-116774.

2 years ago[3.12] gh-117058: Update GUI and packaging recommendations for macOS. (GH-117059...
Miss Islington (bot) [Wed, 20 Mar 2024 15:52:19 +0000 (16:52 +0100)] 
[3.12] gh-117058: Update GUI and packaging recommendations for macOS. (GH-117059) (#117081)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 years ago[3.12] gh-117021: Fix integer overflow in PyLong_AsPid() on non-Windows 64-bit platfo...
Serhiy Storchaka [Wed, 20 Mar 2024 14:44:05 +0000 (16:44 +0200)] 
[3.12] gh-117021: Fix integer overflow in PyLong_AsPid() on non-Windows 64-bit platforms (GH-117064) (GH-117070)

(cherry picked from commit 519b2ae22b54760475bbf62b9558d453c703f9c6)

2 years ago[3.12] gh-90300: Remove reference to PYTHON_FROZEN_MODULES in Python CLI help (GH...
Serhiy Storchaka [Tue, 19 Mar 2024 20:05:08 +0000 (22:05 +0200)] 
[3.12] gh-90300: Remove reference to PYTHON_FROZEN_MODULES in Python CLI help (GH-117035)

Fix error introduced in 4be9fa896117bf07dc944a29c98dd18b71dd6c74.

2 years ago[3.12] docs: announce venv creation before installing packages (GH-117036) (#117040)
Miss Islington (bot) [Tue, 19 Mar 2024 20:04:46 +0000 (21:04 +0100)] 
[3.12] docs: announce venv creation before installing packages (GH-117036) (#117040)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 years ago[3.12] gh-101100: Fix Sphinx warnings in `library/pydoc.rst` (GH-116913) (#117037)
Miss Islington (bot) [Tue, 19 Mar 2024 19:55:30 +0000 (20:55 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/pydoc.rst` (GH-116913) (#117037)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 years ago[3.12] gh-113964: Don't prevent new threads until all non-daemon threads exit (GH...
Sam Gross [Tue, 19 Mar 2024 19:22:42 +0000 (15:22 -0400)] 
[3.12] gh-113964: Don't prevent new threads until all non-daemon threads exit (GH-116677) (#117029)

Starting in Python 3.12, we prevented calling fork() and starting new threads
during interpreter finalization (shutdown). This has led to a number of
regressions and flaky tests. We should not prevent starting new threads
(or `fork()`) until all non-daemon threads exit and finalization starts in
earnest.

This changes the checks to use `_PyInterpreterState_GetFinalizing(interp)`,
which is set immediately before terminating non-daemon threads.

(cherry picked from commit 60e105c1c11ecca1680d03c38aa06bcc77a28714)

2 years ago[3.12] gh-90300: Improve the Python CLI help output (GH-115853) (GH-117022)
Serhiy Storchaka [Tue, 19 Mar 2024 18:33:34 +0000 (20:33 +0200)] 
[3.12] gh-90300: Improve the Python CLI help output (GH-115853) (GH-117022)

* document equivalent command-line options for all environment variables
* document equivalent environment variables for all command-line options
* reduce the size of variable and option descriptions to minimum
* remove the ending period in single-sentence descriptions

(cherry picked from commit b85572c47dc7a8c65fc366a87a3660fc7a3ed244)

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 years ago[3.12] gh-56374: Clarify documentation of nonlocal (GH-116942) (#117023)
Miss Islington (bot) [Tue, 19 Mar 2024 18:05:27 +0000 (19:05 +0100)] 
[3.12] gh-56374: Clarify documentation of nonlocal (GH-116942) (#117023)

Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".

(cherry picked from commit 025ef7a5f7b424fba8713e448244b952bf897df3)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] Update titles and subtitles on landing page template (GH-116914) (#117020)
Miss Islington (bot) [Tue, 19 Mar 2024 17:52:35 +0000 (18:52 +0100)] 
[3.12] Update titles and subtitles on landing page template (GH-116914) (#117020)

Update titles and subtitles on landing page template (GH-116914)

* Update titles and subtitles on landing page template

* address review from gvanrossum

* Edits from hugovk review

* Change word order back. Down the road we should split license and history
(cherry picked from commit c514a975abe35fa4604cd3541e2286168ef67d10)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2 years ago[3.12] gh-116957: configparser: Do post-process values after DuplicateOptionError...
David Röthlisberger [Tue, 19 Mar 2024 17:18:50 +0000 (17:18 +0000)] 
[3.12] gh-116957: configparser: Do post-process values after DuplicateOptionError (GH-116958) (GH-117013)

If you catch DuplicateOptionError / DuplicateSectionError when reading a
config file (the intention is to skip invalid config files) and then
attempt to use the ConfigParser instance, any values it *had* read
successfully so far, were stored as a list instead of string! Later
`get` calls would raise "AttributeError: 'list' object has no attribute
'find'" from somewhere deep in the interpolation code.

(cherry picked from commit b1bc37597f0d36084c4dcb15977fe6d4b9322cd4)

2 years ago[3.12] gh-116735: Use `MISSING` for `CALL` event if argument is absen… (#116873)
Tian Gao [Tue, 19 Mar 2024 17:00:54 +0000 (10:00 -0700)] 
[3.12] gh-116735: Use `MISSING` for `CALL` event if argument is absen… (#116873)

[3.12] gh-116735: Use `MISSING` for `CALL` event if argument is absent (GH-116737)

2 years ago[3.12] gh-116869: Make C API compatible with ISO C90 (GH-116950) (#117011)
Miss Islington (bot) [Tue, 19 Mar 2024 16:06:15 +0000 (17:06 +0100)] 
[3.12] gh-116869: Make C API compatible with ISO C90 (GH-116950) (#117011)

gh-116869: Make C API compatible with ISO C90 (GH-116950)

Make the C API compatible with -Werror=declaration-after-statement
compiler flag again.
(cherry picked from commit a9c304cf020e2fa3ae78fd88359dfc808c9dd639)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-107607: Update comment about utf-8 BOM being ignored (GH-107858) (#117016)
Miss Islington (bot) [Tue, 19 Mar 2024 16:00:40 +0000 (17:00 +0100)] 
[3.12] gh-107607: Update comment about utf-8 BOM being ignored (GH-107858) (#117016)

(cherry picked from commit 7f64ae30ddc22577ce4101ce0b6601b3548b036f)
Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
2 years ago[3.12] gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) (#117002)
Victor Stinner [Tue, 19 Mar 2024 14:15:05 +0000 (15:15 +0100)] 
[3.12] gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) (#117002)

gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989)

On Windows, subprocess.Popen.wait() no longer calls
WaitForSingleObject() with a negative timeout: pass 0 ms if the
timeout is negative.

(cherry picked from commit 27cf3ed00cfe942f4277c273a3dda8ee2ba61fc8)

2 years ago[3.12] gh-105866: fix dataclass with slots=True, weakref_slot=True (GH-105870) (GH...
Miss Islington (bot) [Tue, 19 Mar 2024 10:57:31 +0000 (11:57 +0100)] 
[3.12] gh-105866: fix dataclass with slots=True, weakref_slot=True (GH-105870) (GH-116978)

(cherry picked from commit a22d05f04c074dbb4f71e7837f54c0bb693db75d)

Co-authored-by: Aviel Boag <avboag@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years ago[3.12] Bump GitHub Actions (GH-116944) (#116948)
Miss Islington (bot) [Tue, 19 Mar 2024 10:56:03 +0000 (11:56 +0100)] 
[3.12] Bump GitHub Actions (GH-116944) (#116948)

(cherry picked from commit 3a99f5c5f34dc7b67597ca7230da355d92927c71)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 years ago[3.12] gh-90535: Fix support of interval>1 in logging.TimedRotatingFileHandler (GH...
Miss Islington (bot) [Mon, 18 Mar 2024 17:47:26 +0000 (18:47 +0100)] 
[3.12] gh-90535: Fix support of interval>1 in logging.TimedRotatingFileHandler (GH-116220) (GH-116892)

Fix support of interval values > 1 in logging.TimedRotatingFileHandler
for when='MIDNIGHT' and when='Wx'.
(cherry picked from commit 269051d20e65eda30734cbbbdb07d21df61978d6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) (#116951)
Miss Islington (bot) [Mon, 18 Mar 2024 14:37:26 +0000 (15:37 +0100)] 
[3.12] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) (#116951)

In Lexical Analysis f-strings section, NULL in the description
of 'literal character' means '\0'.  In the format_spec grammar
production, it is wrong with that meaning and redundant if
instead interpreted as <nothing>.  Remove it there.
(cherry picked from commit 4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] gh-115874: Don't use module state in teedataobject tp_dealloc (GH-116204)...
Miss Islington (bot) [Mon, 18 Mar 2024 12:40:34 +0000 (13:40 +0100)] 
[3.12] gh-115874: Don't use module state in teedataobject tp_dealloc (GH-116204) (#116955)

(cherry picked from commit e2fcaf19d302b05d3466807bad0a61f39db2a51b)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2 years ago[3.12] gh-112536: Add TSAN build on Github Actions (GH-116872)
Antoine Pitrou [Mon, 18 Mar 2024 09:52:54 +0000 (10:52 +0100)] 
[3.12] gh-112536: Add TSAN build on Github Actions (GH-116872)

(cherry picked from commit 20578a1f68c841a264b72b00591b11ab2fa77b43)

Co-authored-by: Donghee Na <donghee.na@python.org>
2 years ago[3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601...
Antoine Pitrou [Mon, 18 Mar 2024 09:22:19 +0000 (10:22 +0100)] 
[3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601) (#116929)

(cherry picked from commit ebf29b3)

Co-authored-by: Donghee Na <donghee.na@python.org>
2 years ago[3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648) (#116924)
Antoine Pitrou [Sun, 17 Mar 2024 15:33:35 +0000 (16:33 +0100)] 
[3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648) (#116924)

* [3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648)
(cherry picked from commit 88cb9720001295f82c7771ab4ebf20f3cd0b31fb)

* Remove doc for configure option (leave it hidden in this branch)

---------

Co-authored-by: Samet YASLAN <sametyaslan@gmail.com>
2 years ago[3.12] gh-116780: Fix `test_inspect` in `-OO` mode (GH-116788) (#116799)
Nikita Sobolev [Sun, 17 Mar 2024 10:33:38 +0000 (13:33 +0300)] 
[3.12] gh-116780: Fix `test_inspect` in `-OO` mode (GH-116788) (#116799)

2 years ago[3.12] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852...
Miss Islington (bot) [Sat, 16 Mar 2024 13:10:10 +0000 (14:10 +0100)] 
[3.12] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852) (GH-116905)

It is confusing, because libc is not imported from ctypes,
but defined in previous examples, which already contain the import.
(cherry picked from commit 744c0777952f1e535d1192ee15b286aa67b61533)

Co-authored-by: jnchen <caojingchen@live.com>
2 years ago[3.12] gh-116484: Fix collisions between Checkbutton and ttk.Checkbutton default...
Miss Islington (bot) [Sat, 16 Mar 2024 11:51:08 +0000 (12:51 +0100)] 
[3.12] gh-116484: Fix collisions between Checkbutton and ttk.Checkbutton default names (GH-116495) (GH-116901)

Change automatically generated tkinter.Checkbutton widget names to
avoid collisions with automatically generated tkinter.ttk.Checkbutton
widget names within the same parent widget.
(cherry picked from commit c61cb507c10c5b597928284e087a9a384ab267d0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116894)
Miss Islington (bot) [Sat, 16 Mar 2024 11:00:32 +0000 (12:00 +0100)] 
[3.12] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116894)

* Restore support of None and other false values.
* Raise TypeError for non-zero integers and non-empty sequences.

The regressions were introduced in gh-74668
(bdba8ef42b15e651dc23374a08143cc2b4c4657d).
(cherry picked from commit 1069a462f611f0b70b6eec0bba603d618a0378f3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-116858: Add `@cpython_only` to several tests in `test_cmd_line` (GH-116859...
Nikita Sobolev [Sat, 16 Mar 2024 09:31:28 +0000 (12:31 +0300)] 
[3.12] gh-116858: Add `@cpython_only` to several tests in `test_cmd_line` (GH-116859) (#116889)

2 years ago[3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783...
Miss Islington (bot) [Fri, 15 Mar 2024 15:54:59 +0000 (16:54 +0100)] 
[3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783) (#116870)

gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783)
(cherry picked from commit 16349868d396cc1bff5188de3638321e87fe0293)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when deleg...
Jason R. Coombs [Fri, 15 Mar 2024 13:59:28 +0000 (09:59 -0400)] 
[3.12] gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when delegated through PathFinder. (GH-116812) (#116864)

* Make MetadataPathFinder a proper classmethod.

* In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches.

* Add blurb
(cherry picked from commit 5f52d20a93908196f74271db8437cc1ba7e1e262)

2 years ago[3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (#116854)
Miss Islington (bot) [Fri, 15 Mar 2024 09:52:00 +0000 (10:52 +0100)] 
[3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (#116854)

gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834)
(cherry picked from commit a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>