]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
21 months ago[3.12] gh-101225: Increase the socket backlog when creating a multiprocessing.connect...
Miss Islington (bot) [Sun, 14 Jan 2024 15:29:15 +0000 (16:29 +0100)] 
[3.12] gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) (#114018)

gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567)

Increase the backlog for multiprocessing.connection.Listener` objects created
 by `multiprocessing.manager` and `multiprocessing.resource_sharer` to
 significantly reduce the risk of getting a connection refused error when creating
 a `multiprocessing.connection.Connection` to them.
(cherry picked from commit c7d59bd8cfa053e77ae3446c82afff1fd38a4886)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
21 months ago[3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) (#114046)
Alois Klink [Sun, 14 Jan 2024 02:15:06 +0000 (02:15 +0000)] 
[3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) (#114046)

Some of the asyncio SSL changes in GH-31275 [1] were taken from
v0.16.0 of the uvloop project [2]. In order to comply with the MIT
license, we need to just need to document the copyright information.

[1]: https://github.com/python/cpython/pull/31275
[2]: https://github.com/MagicStack/uvloop/tree/v0.16.0

(cherry picked from commit dce30c9cbc212e5455e100f35ac6afeb30dfd23e)

21 months ago[3.12] gh-114014: Update `fractions.Fraction()`'s rational parsing regex (GH-114015...
Miss Islington (bot) [Sat, 13 Jan 2024 18:21:34 +0000 (19:21 +0100)] 
[3.12] gh-114014: Update `fractions.Fraction()`'s rational parsing regex (GH-114015) (#114023)

Fix a bug in the regex used for parsing a string input to the `fractions.Fraction` constructor. That bug led to an inconsistent exception message being given for some inputs.

---------

(cherry picked from commit dd56b5748317c3d504d6a9660d9207620c547f5c)

Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
21 months ago[3.12] gh-114021: Pin various sphinxcontrib extensions to older versions (#114022)
Ronald Oussoren [Sat, 13 Jan 2024 17:39:02 +0000 (18:39 +0100)] 
[3.12] gh-114021: Pin various sphinxcontrib extensions to older versions (#114022)

21 months ago[3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006)
Miss Islington (bot) [Fri, 12 Jan 2024 23:26:08 +0000 (00:26 +0100)] 
[3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006)

gh-89159: Document missing TarInfo members (GH-91564)
(cherry picked from commit 3aa4b839e4aa01d4e8bc5c7685fd0eb17c4609b8)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
21 months ago[3.12] datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599) (#114004)
Miss Islington (bot) [Fri, 12 Jan 2024 23:05:48 +0000 (00:05 +0100)] 
[3.12] datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599) (#114004)

datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599)
(cherry picked from commit a47353d587b78bb5501b21343d9bca739c49a43a)

Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
21 months ago[3.12] Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292) (#114002)
Miss Islington (bot) [Fri, 12 Jan 2024 23:00:50 +0000 (00:00 +0100)] 
[3.12] Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292) (#114002)

Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292)

The MagicMock documentation mentions magic methods several times without
actually pointing to the term in the glossary. This can be helpful for
people to fully understand what those magic methods are.
(cherry picked from commit e97da8677f7bbc6d970e230d334cd646ab662af1)

Co-authored-by: Pierre Equoy <pierre.equoy@canonical.com>
21 months ago[3.12] gh-101100: Fix Sphinx Lint warnings in `Misc/` (GH-113946) (#113998)
Hugo van Kemenade [Fri, 12 Jan 2024 22:58:16 +0000 (00:58 +0200)] 
[3.12] gh-101100: Fix Sphinx Lint warnings in `Misc/` (GH-113946) (#113998)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) (#113999)
Miss Islington (bot) [Fri, 12 Jan 2024 22:48:59 +0000 (23:48 +0100)] 
[3.12] Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) (#113999)

Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039)
(cherry picked from commit 32f3684b8f18d757945eee67a697cb4a95c697db)

Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
21 months agogh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)
Miss Islington (bot) [Fri, 12 Jan 2024 15:53:27 +0000 (16:53 +0100)] 
gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)

(cherry picked from commit ed066481c76c6888ff5709f5b9f93b92c232a4a6)

Co-authored-by: Steve Dower <steve.dower@python.org>
21 months ago[3.12] Docs: Amend codeobject.co_lines docs; end number is exclusive (GH-113970)...
Miss Islington (bot) [Fri, 12 Jan 2024 15:10:43 +0000 (16:10 +0100)] 
[3.12] Docs: Amend codeobject.co_lines docs; end number is exclusive (GH-113970) (#113987)

The end number should be exclusive, not inclusive.
(cherry picked from commit e68806c7122070078507b370b13bb225f8501ff8)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
21 months ago[3.12] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (GH-113831)
Miss Islington (bot) [Fri, 12 Jan 2024 12:00:17 +0000 (13:00 +0100)] 
[3.12] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (GH-113831)

Determine the support of the Kyiv timezone by checking the result of
astimezone() which uses the system tz database and not the one
populated by zoneinfo.
(cherry picked from commit 931d7e052e22aa01e18fcc67ed71b6ea305aff71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)
Miss Islington (bot) [Fri, 12 Jan 2024 03:39:45 +0000 (04:39 +0100)] 
[3.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)

test_configdialog.HighPageTest.test_highlight_target_text_mouse fails
if a line of the Highlight tab text sample is not visible. If so, bbox()
in click_char() returns None and the unpacking iteration fails.

This occurred on a Devuan Linux system. Fix by moving the
'see character' call inside click_char, just before the bbox call.

Also, reduce the click_char calls to just one per tag name and
replace the other nested function with a dict comprehension.
(cherry picked from commit c4992f4106aa509375f5beca8dc044a7f6c36a72)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
21 months ago[3.12] Improve kde graph with better caption and number formatting (gh-113967) (gh...
Miss Islington (bot) [Fri, 12 Jan 2024 00:49:10 +0000 (01:49 +0100)] 
[3.12] Improve kde graph with better caption and number formatting (gh-113967) (gh-113968)

21 months ago[3.12] GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (GH-107679...
Miss Islington (bot) [Fri, 12 Jan 2024 00:02:28 +0000 (01:02 +0100)] 
[3.12] GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (GH-107679) (#113965)

GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (GH-107679)
(cherry picked from commit c9b8a22f3404d59e2c4950715f8c29413a349b8e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
21 months agogh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)
Miss Islington (bot) [Thu, 11 Jan 2024 23:13:02 +0000 (00:13 +0100)] 
gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)

(cherry picked from commit b4d4aa9e8d61476267951c72321fadffc2d82227)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH...
Miss Islington (bot) [Thu, 11 Jan 2024 09:49:21 +0000 (10:49 +0100)] 
[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH-112421) (#113934)

(cherry picked from commit ec23e90082ffdedc7f0bdd2dfadfc4983ddc0712)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016) (GH-113912)
Miss Islington (bot) [Thu, 11 Jan 2024 09:24:29 +0000 (10:24 +0100)] 
[3.12] gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016) (GH-113912)

Raise BadZipFile when try to read an entry that overlaps with other entry or
central directory.
(cherry picked from commit 66363b9a7b9fe7c99eba3a185b74c5fdbf842eba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897) (#113928)
Miss Islington (bot) [Wed, 10 Jan 2024 23:56:57 +0000 (00:56 +0100)] 
[3.12] gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897) (#113928)

gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897)

Fix DeprecationWarning in test___ne__().

(cherry picked from commit 9d33c23857cfd952bf3e1e7f34c77b7c9a5accc3)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months agogh-87868: Sort and remove duplicates in getenvironment() (GH-102731)
Miss Islington (bot) [Wed, 10 Jan 2024 23:43:39 +0000 (00:43 +0100)] 
gh-87868: Sort and remove duplicates in getenvironment() (GH-102731)

(cherry picked from commit c31be58da8577ef140e83d4e46502c7bb1eb9abf)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
22 months ago[3.12] gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894...
Miss Islington (bot) [Wed, 10 Jan 2024 17:32:54 +0000 (18:32 +0100)] 
[3.12] gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894) (#113922)

gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894)
(cherry picked from commit 901a971e161e060bd95f3cf3aeebe8b48d6e6dac)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
22 months ago[3.12] gh-70835: Clarify error message for CSV file opened with wrong newline (GH...
Miss Islington (bot) [Wed, 10 Jan 2024 13:26:04 +0000 (14:26 +0100)] 
[3.12] gh-70835: Clarify error message for CSV file opened with wrong newline (GH-113786) (GH-113905)

Based on patch by SilentGhost.
(cherry picked from commit 568d220993fa9b4b812ff1b425edd80dbe17dda9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113907)
Miss Islington (bot) [Wed, 10 Jan 2024 13:21:50 +0000 (14:21 +0100)] 
[3.12] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113907)

It occurred when try to re-encode an unknown-8bit part combined with non-unknown-8bit part.
(cherry picked from commit e9d5b6ea2d68564f176fdf70c2d7028e060c62b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-113664: Improve style of Big O notation (GH-113695) (GH-113909)
Miss Islington (bot) [Wed, 10 Jan 2024 13:08:08 +0000 (14:08 +0100)] 
[3.12] gh-113664: Improve style of Big O notation (GH-113695) (GH-113909)

Use cursive to make it looking like mathematic formulas.
(cherry picked from commit a8629816c6c0e6770248a60529fd7c9ba08aad55)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-113877: Fix Tkinter method winfo_pathname() on 64-bit Windows (GH-113900...
Miss Islington (bot) [Wed, 10 Jan 2024 10:53:27 +0000 (11:53 +0100)] 
[3.12] gh-113877: Fix Tkinter method winfo_pathname() on 64-bit Windows (GH-113900) (GH-113901)

winfo_id() converts the result of "winfo id" command to integer, but
"winfo pathname" command requires an argument to be a hexadecimal number
on Win64.
(cherry picked from commit 1b7e0024a16c1820f61c04a8a100498568410afd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] GH-113661: unittest runner: Don't exit 5 if tests were skipped (GH-113856...
Miss Islington (bot) [Tue, 9 Jan 2024 21:34:38 +0000 (22:34 +0100)] 
[3.12] GH-113661: unittest runner: Don't exit 5 if tests were skipped (GH-113856) (#113875)

GH-113661: unittest runner: Don't exit 5 if tests were skipped (GH-113856)

The intention of exiting 5 was to detect issues where the test suite
wasn't discovered at all. If we skipped tests, it was correctly
discovered.
(cherry picked from commit 3a9096c337c16c9335e0d4eba8d1d4196258af72)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
22 months ago[3.12] gh-113781: Silence AttributeError in warning module during Python finalization...
Miss Islington (bot) [Tue, 9 Jan 2024 20:40:30 +0000 (21:40 +0100)] 
[3.12] gh-113781: Silence AttributeError in warning module during Python finalization (GH-113813) (GH-113873)

The tracemalloc module can already be cleared.
(cherry picked from commit 0297418cacf998e778bc0517aa11eaac827b8c0f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] Simplify binomial approximation example with random.binomialvariate() (gh...
Miss Islington (bot) [Tue, 9 Jan 2024 19:24:55 +0000 (20:24 +0100)] 
[3.12] Simplify binomial approximation example with random.binomialvariate() (gh-113871) (gh-113872)

22 months ago[3.12] gh-113842: Add missing error check for PyIter_Next() in Python/symtable.c...
Miss Islington (bot) [Tue, 9 Jan 2024 11:00:07 +0000 (12:00 +0100)] 
[3.12] gh-113842: Add missing error check for PyIter_Next() in Python/symtable.c (GH-113843) (GH-113851)

(cherry picked from commit fda901a1ff94ea6cc338b74928acdbc5ee165ed7)

Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings for 2.6 port-specific deprecations (GH-113752...
Hugo van Kemenade [Tue, 9 Jan 2024 09:58:55 +0000 (11:58 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings for 2.6 port-specific deprecations (GH-113752) (#113846)

22 months ago[3.12] gh-113692: skip a test if multiprocessing isn't available. (GH-113704) (GH...
Miss Islington (bot) [Tue, 9 Jan 2024 08:13:41 +0000 (09:13 +0100)] 
[3.12] gh-113692: skip a test if multiprocessing isn't available. (GH-113704) (GH-113844)

(cherry picked from commit 842b738129021f52293dc053e014ecb4fe095baa)

22 months ago[3.12] Docs: Link tokens in the format string grammars (GH-108184) (#113839)
Miss Islington (bot) [Tue, 9 Jan 2024 02:54:07 +0000 (03:54 +0100)] 
[3.12] Docs: Link tokens in the format string grammars (GH-108184) (#113839)

Docs: Link tokens in the format string grammars (GH-108184)
(cherry picked from commit f3d5d4aa8f0388217aeff69e28d078bdda464b38)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
22 months ago[3.12] Minor algebraic simplification for the totient() recipe (gh-113822) (gh-113823)
Miss Islington (bot) [Mon, 8 Jan 2024 19:22:42 +0000 (20:22 +0100)] 
[3.12] Minor algebraic simplification for the totient() recipe (gh-113822) (gh-113823)

22 months ago[3.12] gh-74678: Increase base64 test coverage (GH-21913) (GH-113811)
Miss Islington (bot) [Mon, 8 Jan 2024 11:20:36 +0000 (12:20 +0100)] 
[3.12] gh-74678: Increase base64 test coverage (GH-21913) (GH-113811)

Ensure the character y is disallowed within an Ascii85 5-tuple.

(cherry picked from commit 802d4954f12541ba28dd7f18bf4a65054941a80d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Lee Cannon <leecannon@leecannon.xyz>
22 months ago[3.12] gh-80109: Fix io.TextIOWrapper dropping the internal buffer during write(...
Miss Islington (bot) [Mon, 8 Jan 2024 11:00:30 +0000 (12:00 +0100)] 
[3.12] gh-80109: Fix io.TextIOWrapper dropping the internal buffer during write() (GH-22535) (GH-113808)

io.TextIOWrapper was dropping the internal decoding buffer
during read() and write() calls.
(cherry picked from commit 73c93265634257b1488262097e024c1727260cfd)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
22 months ago[3.12] gh-112795: Allow `/` folder in a zipfile (GH-112932) (#113789)
Miss Islington (bot) [Sun, 7 Jan 2024 01:45:37 +0000 (02:45 +0100)] 
[3.12] gh-112795: Allow `/` folder in a zipfile (GH-112932) (#113789)

gh-112795: Allow `/` folder in a zipfile (GH-112932)

Allow extraction (no-op) of a "/" folder in a zipfile, they are commonly added by some archive creation tools.

(cherry picked from commit 541c5dbb81c784afd587406be2cc82645979a107)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
22 months ago[3.12] gh-113729: Fix IDLE's Help -> "IDLE Help" menu bug in 3.12.1 and 3.11.7 (GH...
Miss Islington (bot) [Sat, 6 Jan 2024 06:53:34 +0000 (07:53 +0100)] 
[3.12] gh-113729: Fix IDLE's Help -> "IDLE Help" menu bug in 3.12.1 and 3.11.7 (GH-113731) (#113765)

(cherry picked from commit 66f39648154214621d388f519210442d5fce738f)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.12] gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374...
Serhiy Storchaka [Fri, 5 Jan 2024 22:52:41 +0000 (00:52 +0200)] 
[3.12] gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374) (GH-113623)

The length field of StgDictObject for Structure class contains now
the total number of items in ffi_type_pointer.elements (excluding
the trailing null).

The old behavior of using the number of elements in the parent class can
cause the array to be truncated when it is copied, especially when there
are multiple layers of subclassing.

(cherry picked from commit 5f3cc90a12d6df404fd6f48a0df1334902e271f2)

Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
22 months ago[3.12] gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618)...
Miss Islington (bot) [Fri, 5 Jan 2024 22:37:43 +0000 (23:37 +0100)] 
[3.12] gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618) (GH-113758)

Explicitly open and close files instead of using FileType.
(cherry picked from commit bd754b93ca837aa1f239252437a211271d068b71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-113360: Fix the documentation of module's attribute __test__ (GH-113393...
Miss Islington (bot) [Fri, 5 Jan 2024 22:29:31 +0000 (23:29 +0100)] 
[3.12] gh-113360: Fix the documentation of module's attribute __test__ (GH-113393) (GH-113760)

It can only be a dict since Python 2.4.
(cherry picked from commit d99d8712253c3affc54cf7f6e71f161dea8347ce)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/pyclbr.rst` (GH-113739) (#113748)
Miss Islington (bot) [Fri, 5 Jan 2024 19:36:31 +0000 (20:36 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/pyclbr.rst` (GH-113739) (#113748)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.12] gh-80532: Do not set ipv6type when cross-compiling (GH-17956) (#113740)
Miss Islington (bot) [Fri, 5 Jan 2024 15:56:43 +0000 (16:56 +0100)] 
[3.12] gh-80532: Do not set ipv6type when cross-compiling (GH-17956) (#113740)

(cherry picked from commit 5e1916ba1bf521d6ff9d2c553c057f3ef7008977)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Xavier de Gaye <xdegaye@gmail.com>
22 months ago[3.12] gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959) (#113170)
Diego Russo [Fri, 5 Jan 2024 15:45:26 +0000 (15:45 +0000)] 
[3.12] gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959) (#113170)

Fix the same issue of PR #112604 on PPC64LE platform
Refactor tests to make easier to add more platfroms if needed.

(cherry picked from commit 6644ca45cde9ca1b80513a90dacccfeea2d98620)
Change-Id: I31730a3ebe558570ce1d7a3b26db8392f18d1770

22 months ago[3.12] gh-101100: Fix Sphinx warnings for 2.6 deprecations and removals (GH-113725...
Miss Islington (bot) [Fri, 5 Jan 2024 14:01:58 +0000 (15:01 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings for 2.6 deprecations and removals (GH-113725) (#113734)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] gh-113703: Correctly identify incomplete f-strings in the codeop module (GH...
Pablo Galindo Salgado [Fri, 5 Jan 2024 13:23:40 +0000 (13:23 +0000)] 
[3.12] gh-113703: Correctly identify incomplete f-strings in the codeop module (GH-113709) (#113733)

(cherry picked from commit 3003fbbf00422bce6e327646063e97470afa9091)

22 months ago[3.12] gh-113320: Reduce the number of dangerous `getattr()` calls when constructing...
Alex Waygood [Fri, 5 Jan 2024 01:51:17 +0000 (01:51 +0000)] 
[3.12] gh-113320: Reduce the number of dangerous `getattr()` calls when constructing protocol classes (#113401) (#113722)

- Only attempt to figure out whether protocol members are "method members" or not if the class is marked as a runtime protocol. This information is irrelevant for non-runtime protocols; we can safely skip the risky introspection for them.
- Only do the risky getattr() calls in one place (the runtime_checkable class decorator), rather than in three places (_ProtocolMeta.__init__, _ProtocolMeta.__instancecheck__ and _ProtocolMeta.__subclasscheck__). This reduces the number of locations in typing.py where the risky introspection could go wrong.
- For runtime protocols, if determining whether a protocol member is callable or not fails, give a better error message. I think it's reasonable for us to reject runtime protocols that have members which raise strange exceptions when you try to access them. PEP-544 clearly states that all protocol member must be callable for issubclass() calls against the protocol to be valid -- and if a member raises when we try to access it, there's no way for us to figure out whether it's a callable member or not!

(cherry-picked from commit ed6ea3ea79)

22 months ago[3.12] gh-113696: Docs: Annotate PyObject_CallOneArg and PyObject_CallNoArgs as retur...
Miss Islington (bot) [Fri, 5 Jan 2024 00:17:15 +0000 (01:17 +0100)] 
[3.12] gh-113696: Docs: Annotate PyObject_CallOneArg and PyObject_CallNoArgs as returning a strong reference (GH-113697) (#113698)

(cherry picked from commit 1ae7ceba29771baf8f2e8d2d4c50a0355cb6b5c8)

Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
22 months ago[3.12] gh-113538: Don't error in stream reader protocol callback when task is cancell...
Miss Islington (bot) [Thu, 4 Jan 2024 20:51:53 +0000 (21:51 +0100)] 
[3.12] gh-113538: Don't error in stream reader protocol callback when task is cancelled (GH-113690) (#113713)

(cherry picked from commit 4681a5271a8598b46021cbc556ac8098ab8a1d81)

Co-authored-by: Guido van Rossum <guido@python.org>
22 months ago[3.12] Document the `co_lines` method on code objects (#113682) (#113686)
Alex Waygood [Wed, 3 Jan 2024 20:09:15 +0000 (20:09 +0000)] 
[3.12] Document the `co_lines` method on code objects (#113682) (#113686)

(cherry-picked from commit f1f839243251fef7422c31d6a7c3c747e0b5e27c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings for removed dead batteries (GH-113669) (#113681)
Hugo van Kemenade [Wed, 3 Jan 2024 13:50:10 +0000 (15:50 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings for removed dead batteries (GH-113669) (#113681)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] gh-113637: Let c_annotations.py to handle the spacing of Limited/Unstable...
Miss Islington (bot) [Wed, 3 Jan 2024 12:57:32 +0000 (13:57 +0100)] 
[3.12] gh-113637: Let c_annotations.py to handle the spacing of Limited/Unstable API & Stable ABI translation strings (GH-113638) (#113676)

Co-authored-by: Ege Akman <egeakmanegeakman@hotmail.com>
22 months ago[3.12] `functools.partial` docs: Use the more common spelling for "referenceable...
Miss Islington (bot) [Wed, 3 Jan 2024 12:57:05 +0000 (13:57 +0100)] 
[3.12] `functools.partial` docs: Use the more common spelling for "referenceable" (GH-113675) (#113677)

`functools.partial` docs: Use the more common spelling for "referenceable" (GH-113675)
(cherry picked from commit 4de468cce106221968d7ac08ddd94571b903c194)

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
22 months ago[3.12] gh-113628: Fix test_site test with long stdlib paths (GH-113640) (#113671)
Miss Islington (bot) [Wed, 3 Jan 2024 00:59:39 +0000 (01:59 +0100)] 
[3.12] gh-113628: Fix test_site test with long stdlib paths (GH-113640) (#113671)

gh-113628: Fix test_site test with long stdlib paths (GH-113640)
(cherry picked from commit 5dc79e3d7f26a6a871a89ce3efc9f1bcee7bb447)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
22 months ago[3.12] gh-113602: Bail out when the parser tries to override existing errors (GH...
Miss Islington (bot) [Tue, 2 Jan 2024 13:27:20 +0000 (14:27 +0100)] 
[3.12] gh-113602: Bail out when the parser tries to override existing errors (GH-113607) (#113652)

gh-113602: Bail out when the parser tries to override existing errors (GH-113607)
(cherry picked from commit 9ed36d533ab8b256f0a589b5be6d7a2fdcf4aff2)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
22 months ago[3.12] Use the official term "free-threading" for GitHub Action (g… (#113646)
Donghee Na [Tue, 2 Jan 2024 13:04:40 +0000 (22:04 +0900)] 
[3.12] Use the official term "free-threading" for GitHub Action (g… (#113646)

22 months ago[3.12] gh-101100: Fix Sphinx warnings from removed `~!` references (GH-113629) (...
Hugo van Kemenade [Tue, 2 Jan 2024 12:59:42 +0000 (14:59 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings from removed `~!` references (GH-113629) (#113641)

(cherry picked from commit 7595380347610598a3f5529214a449660892537b)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.12] gh-81094: Refer to PEP 318 in compound_statements.rst (GH-113588) (#113643)
Miss Islington (bot) [Tue, 2 Jan 2024 08:46:01 +0000 (09:46 +0100)] 
[3.12] gh-81094: Refer to PEP 318 in compound_statements.rst (GH-113588) (#113643)

Co-authored-by: John D. McDonald <43117960+Rasputin2@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] GH- gh-111700: Fix syntax highlighting for C code in the "What's New In Python...
Miss Islington (bot) [Mon, 1 Jan 2024 08:14:31 +0000 (09:14 +0100)] 
[3.12] GH- gh-111700: Fix syntax highlighting for C code in the "What's New In Python 3.12" documentation (GH-113609) (#113610)

GH- gh-111700: Fix syntax highlighting for C code in the "What's New In Python 3.12" documentation (GH-113609)

Fix PEP 684 syntax highlighting in what's new Python 3.12
(cherry picked from commit 9ce6c01e38a2fc7a5ce832f1f8c8d9097132556d)

Co-authored-by: Parth Doshi <doshi.parth9@gmail.com>
22 months ago[3.12] gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the...
Miss Islington (bot) [Sun, 31 Dec 2023 23:22:55 +0000 (00:22 +0100)] 
[3.12] gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (GH-113369) (#113606)

gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (GH-113369)
(cherry picked from commit 2849cbb53afc8c6a4465f1b3490c67c2455caf6f)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/configparser.rst` (GH-113598) ...
Hugo van Kemenade [Sun, 31 Dec 2023 18:17:33 +0000 (20:17 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/configparser.rst` (GH-113598) (#113599)

(cherry picked from commit 30a6d79fb8bc1ef96600c290c016720103b74b2d)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.12] Update ConfigParser docs defining valid section name (GH-110506) (#113589)
Miss Islington (bot) [Sat, 30 Dec 2023 23:24:32 +0000 (00:24 +0100)] 
[3.12] Update ConfigParser docs defining valid section name (GH-110506) (#113589)

Co-authored-by: Delgan <4193924+Delgan@users.noreply.github.com>
22 months ago[3.12] gh-89414: Document that SIGCLD is not available on macOS (GH-113580) (#113585)
Miss Islington (bot) [Sat, 30 Dec 2023 17:09:50 +0000 (18:09 +0100)] 
[3.12] gh-89414: Document that SIGCLD is not available on macOS (GH-113580) (#113585)

gh-89414: Document that SIGCLD is not available on macOS (GH-113580)

Document that SIGCLD is not available on macOS
(cherry picked from commit f48a1bcb2914addee971814fd014e4d8075ea6a9)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
22 months ago[3.12] gh-113543: Make sure that `MacOSXOSAScript` sends `webbrowser.open` audit...
Miss Islington (bot) [Fri, 29 Dec 2023 08:56:18 +0000 (09:56 +0100)] 
[3.12] gh-113543: Make sure that `MacOSXOSAScript` sends `webbrowser.open` audit event (GH-113544) (#113549)

gh-113543: Make sure that `MacOSXOSAScript` sends `webbrowser.open` audit event (GH-113544)
(cherry picked from commit fba324154e65b752e42aa59dea287d639935565f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
22 months ago[3.12] Doc/library/os.rst: `os.waitid` absent on MacOS (GH-104558) (#113553)
Miss Islington (bot) [Fri, 29 Dec 2023 08:27:04 +0000 (09:27 +0100)] 
[3.12] Doc/library/os.rst: `os.waitid` absent on MacOS (GH-104558) (#113553)

Doc/library/os.rst: `os.waitid` absent on MacOS (GH-104558)

* Doc/library/os.rst: `os.waitid` absent on MacOS

(cherry picked from commit db1c88223986efe3076eb3b229a8b6db59bae284)

Co-authored-by: John Hawkinson <jhawk@alum.mit.edu>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings in library/random.rst (GH-112981) (#113551)
Miss Islington (bot) [Thu, 28 Dec 2023 19:40:21 +0000 (20:40 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in library/random.rst (GH-112981) (#113551)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.12] bpo-11102: Make configure enable major(), makedev(), and minor() on HP-UX...
Miss Islington (bot) [Thu, 28 Dec 2023 11:12:16 +0000 (12:12 +0100)] 
[3.12] bpo-11102: Make configure enable major(), makedev(), and minor() on HP-UX (GH-19856) (GH-113540)

Always include <sys/types.h> before <sys/sysmacros.h>.

(cherry picked from commit f108468970bf4e70910862476900f924fb701399)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441) (#113535)
Miss Islington (bot) [Thu, 28 Dec 2023 09:21:12 +0000 (10:21 +0100)] 
[3.12] gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441) (#113535)

gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441)

* gh-110459: Make sure --with-openssl-rpath works on macOS

On macOS the `-rpath` linker flag is spelled differently
than on on platforms.
(cherry picked from commit cc13eabc7ce08accf49656e258ba500f74a1dae8)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
22 months ago[3.12] gh-57795: Add news to idlelib/News3.txt (GH-113522) (#113523)
Miss Islington (bot) [Wed, 27 Dec 2023 21:05:59 +0000 (22:05 +0100)] 
[3.12] gh-57795: Add news to idlelib/News3.txt (GH-113522) (#113523)

gh-57795: Add news to idlelib/News3.txt (GH-113522)
(cherry picked from commit 6c98fce33a4c2d6671978f6286377af0d6e22182)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.12] gh-67641: Clarify documentation on bytes vs text with non-seeking tarfile...
Miss Islington (bot) [Wed, 27 Dec 2023 17:32:10 +0000 (18:32 +0100)] 
[3.12] gh-67641: Clarify documentation on bytes vs text with non-seeking tarfile stream (GH-31610) (GH-113519)

(cherry picked from commit 0651936ae2bc6999f488f8c519b8d07a06a11557)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
22 months ago[3.12] bpo-26791: Update shutil.move() to provide the same symlink move behavior...
Miss Islington (bot) [Wed, 27 Dec 2023 17:03:30 +0000 (18:03 +0100)] 
[3.12] bpo-26791: Update shutil.move() to provide the same symlink move behavior as the mv shell when moving a symlink into a directory that is the target of the symlink (GH-21759) (GH-113517)

(cherry picked from commit c66b577d9f7a11ffab57985fd6fb22e9dfd4f245)

Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
22 months ago[3.12] gh-57795: IDLE: Enter the selected text when opening the "Replace" dialog...
Miss Islington (bot) [Wed, 27 Dec 2023 14:57:01 +0000 (15:57 +0100)] 
[3.12] gh-57795: IDLE: Enter the selected text when opening the "Replace" dialog (GH-17593) (GH-113514)

(cherry picked from commit 712afab5acbe27ceb1eddde5aa559078ae7eaa3b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Roger Serwy <roger.serwy@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-111615: Fix regression in QueueHandler configuration. (GH-111638) (GH-113507)
Miss Islington (bot) [Wed, 27 Dec 2023 14:20:36 +0000 (15:20 +0100)] 
[3.12] gh-111615: Fix regression in QueueHandler configuration. (GH-111638) (GH-113507)

22 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/cmd.rst` (GH-113502) (#113511)
Hugo van Kemenade [Wed, 27 Dec 2023 10:27:13 +0000 (12:27 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/cmd.rst` (GH-113502) (#113511)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/calendar.rst` (GH-113500) (#113509)
Hugo van Kemenade [Wed, 27 Dec 2023 09:45:32 +0000 (11:45 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/calendar.rst` (GH-113500) (#113509)

22 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/bisect.rst` (GH-113496) (#113504)
Miss Islington (bot) [Tue, 26 Dec 2023 21:54:02 +0000 (22:54 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/bisect.rst` (GH-113496) (#113504)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] bpo-36959: Fix error messages for invalid ISO format string in _strptime(...
Miss Islington (bot) [Tue, 26 Dec 2023 19:56:42 +0000 (20:56 +0100)] 
[3.12] bpo-36959: Fix error messages for invalid ISO format string in _strptime() (GH-13408) (GH-113495)

Previously some error messages complained about incompatible
combinations of directives that are not contained in the format string.

(cherry picked from commit 4b2c3e8e436b5191039cbe8cd9932654a60803e6)

Co-authored-by: Gordon P. Hemsley <me@gphemsley.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.rst` (GH-113493...
Miss Islington (bot) [Tue, 26 Dec 2023 19:46:40 +0000 (20:46 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.rst` (GH-113493) (#113497)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] Docs: make htmllive: open browser when ready (GH-113288) (#113484)
Miss Islington (bot) [Tue, 26 Dec 2023 12:08:43 +0000 (13:08 +0100)] 
[3.12] Docs: make htmllive: open browser when ready (GH-113288) (#113484)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.12] gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469...
Miss Islington (bot) [Tue, 26 Dec 2023 11:27:18 +0000 (12:27 +0100)] 
[3.12] gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469) (GH-113483)

(cherry picked from commit 8a3d0e4a661e6c27e4c17c818ce4187a36579e5f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] Misc minor improvements to the itertools recipes (gh-113477) (gh-113478)
Miss Islington (bot) [Mon, 25 Dec 2023 22:32:05 +0000 (23:32 +0100)] 
[3.12] Misc minor improvements to the itertools recipes (gh-113477) (gh-113478)

22 months ago[3.12] gh-106905: Use separate structs to track recursion depth in each PyAST_mod2obj...
Serhiy Storchaka [Mon, 25 Dec 2023 19:20:07 +0000 (21:20 +0200)] 
[3.12] gh-106905: Use separate structs to track recursion depth in each PyAST_mod2obj call. (GH-113035) (GH-113472)

(cherry picked from commit 48c49739f5502fc7aa82f247ab2e4d7b55bdca62)

Co-authored-by: Yilei Yang <yileiyang@google.com>
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
22 months ago[3.12] gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253) (GH-112297)
Miss Islington (bot) [Mon, 25 Dec 2023 19:07:09 +0000 (20:07 +0100)] 
[3.12] gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253) (GH-112297)

(cherry picked from commit e1540ae74d1fce62f53e25838ba21746ba5d8444)

Co-authored-by: James Turk <dev@jamesturk.net>
22 months ago[3.12] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH...
Miss Islington (bot) [Mon, 25 Dec 2023 18:55:08 +0000 (19:55 +0100)] 
[3.12] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112597)

* Fix a crash when pass UINT_MAX.
* Fix an integer overflow on 64-bit non-Windows platforms.
(cherry picked from commit 0daf555c6fb3feba77989382135a58215e1d70a5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
22 months ago[3.12] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470)
Jeff Allen [Mon, 25 Dec 2023 18:31:57 +0000 (18:31 +0000)] 
[3.12] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470)

This is so that we can run python -m test.test_interpreters. As such it
backports that aspect of commit 86a77f4e1a5ceaff1036b0072521e12752b5df47,
where it is implemented by a package __main__.py.

22 months ago[3.12] [doc] Make subprocess.wait documentation more precise (GH-98700) (GH-112153)
Miss Islington (bot) [Mon, 25 Dec 2023 18:27:06 +0000 (19:27 +0100)] 
[3.12] [doc] Make subprocess.wait documentation more precise (GH-98700) (GH-112153)

An active loop is only used when the `timeout` parameter is used on
POSIX.

When no timeout is used, the code calls `os.waitpid` internally (which puts
the process on a sleep status). On Windows, the internal Windows API
call accepts a timeout parameter, so that is delegated to the OS.
(cherry picked from commit 81ab0e8a4add53035c87b040afda6d554cace528)

Co-authored-by: Luis Pedro Coelho <luis@luispedro.org>
22 months ago[3.12] docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888...
Miss Islington (bot) [Mon, 25 Dec 2023 18:24:22 +0000 (19:24 +0100)] 
[3.12] docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888) (GH-111690)

(cherry picked from commit 9f33ede12710c454643c394421f52d209247272c)

Co-authored-by: lefp <70862148+lefp@users.noreply.github.com>
22 months ago[3.12] gh-113407: Fix import of unittest.mock when CPython is built without docstring...
Miss Islington (bot) [Sun, 24 Dec 2023 11:54:35 +0000 (12:54 +0100)] 
[3.12] gh-113407: Fix import of unittest.mock when CPython is built without docstrings (GH-113408) (GH-113454)

(cherry picked from commit 0c574540e07792cef5487aef61ab38bfe404060f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH...
Miss Islington (bot) [Sun, 24 Dec 2023 10:49:34 +0000 (11:49 +0100)] 
[3.12] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435) (GH-113453)

(cherry picked from commit 53330f167792a2947ab8b0faafb11019d7fb09b6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.12] gh-113421: Fix multiprocessing logger for "%(filename)s" (GH-113423) (GH-113450)
Miss Islington (bot) [Sun, 24 Dec 2023 10:23:32 +0000 (11:23 +0100)] 
[3.12] gh-113421: Fix multiprocessing logger for "%(filename)s" (GH-113423) (GH-113450)

(cherry picked from commit ce77ee50358c0668eda5078f50b38f0770a370ab)

Co-authored-by: Xu Song <xusong.vip@gmail.com>
22 months ago[3.12] gh-113028: Correctly memoize str in pickle when escapes added (GH-113436)...
Miss Islington (bot) [Sun, 24 Dec 2023 10:01:08 +0000 (11:01 +0100)] 
[3.12] gh-113028: Correctly memoize str in pickle when escapes added (GH-113436) (GH-113448)

This fixes a divergence between the Python and C implementations of pickle
for protocol 0, such that it pickle.py fails to re-use the first pickled
representation of strings involving characters that have to be escaped.
(cherry picked from commit 08398631a0298dcf785ee7bd0e26c7844823ce59)

Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
22 months ago[3.12] gh-111784: Fix two segfaults in the elementtree module (GH-113405) (GH-113446)
Miss Islington (bot) [Sun, 24 Dec 2023 09:25:05 +0000 (10:25 +0100)] 
[3.12] gh-111784: Fix two segfaults in the elementtree module (GH-113405) (GH-113446)

First fix resolve situation when pyexpat module (which contains expat_CAPI
capsule) deallocates before _elementtree, so we need to hold a strong
reference to pyexpat module to.

Second fix resolve situation when module state is deallocated before
deallocation of XMLParser instances, which uses module state to clear
some stuff.
(cherry picked from commit 894f0e573d9eb49cd5864c44328f10a731852dab)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
22 months ago[3.12] gh-112559: Avoid unnecessary conversion attempts to enum_klass in signal.py...
Miss Islington (bot) [Sun, 24 Dec 2023 02:09:59 +0000 (03:09 +0100)] 
[3.12] gh-112559: Avoid unnecessary conversion attempts to enum_klass in signal.py (GH-113040) (#113443)

(cherry picked from commit 050783cb37d6a09d8238fa640814df8a915f6a68)

Co-authored-by: Yilei Yang <yileiyang@google.com>
22 months ago[3.12] gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (GH-113378...
Miss Islington (bot) [Sat, 23 Dec 2023 20:57:54 +0000 (21:57 +0100)] 
[3.12] gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (GH-113378) (#113398)

gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (GH-113378)

* gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set

This fixes the existing tests when PYTHONIOENCODING is
set by unsetting PYTHONIOENCODING.

Also add a test that explicitly checks what happens
when PYTHONIOENCODING is set.

(cherry picked from commit 5f665e99e0b8a52415f83c2416eaf28abaacc3ae)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
22 months ago[3.12] gh-113297: Fix segfault in compiler for with statement with 19 context manager...
Irit Katriel [Sat, 23 Dec 2023 13:29:11 +0000 (13:29 +0000)] 
[3.12] gh-113297: Fix segfault in compiler for with statement with 19 context managers (#113327) (#113404)

22 months ago[3.12] gh-74573: document that ndbm can silently corrupt databases on macOS (GH-11335...
Miss Islington (bot) [Sat, 23 Dec 2023 12:49:33 +0000 (13:49 +0100)] 
[3.12] gh-74573: document that ndbm can silently corrupt databases on macOS (GH-113354) (#113431)

gh-74573: document that ndbm can silently corrupt databases on macOS (GH-113354)

* gh-74573: document that ndbm can silently corrupt databases on macOS

The system ndbm implementation on macOS has an undocumented limitation
on the size of values and can silently corrupt database files when those
are exceeded.

(cherry picked from commit 593b4d81d276b428f926debfe70d56ba94edf0e1)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
22 months ago[3.12] gh-81682: Fix test failures when CPython is built without docstrings (GH-11341...
Serhiy Storchaka [Sat, 23 Dec 2023 11:50:01 +0000 (13:50 +0200)] 
[3.12] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113429)

(cherry picked from commit 4e5b27e6a3be85853bd04d45128dd7cc706bb1c8)

22 months ago[3.12] gh-112925: Fix error in example of `datetime.time.fromisoformat` and add docte...
Miss Islington (bot) [Sat, 23 Dec 2023 10:50:00 +0000 (11:50 +0100)] 
[3.12] gh-112925: Fix error in example of `datetime.time.fromisoformat` and add doctest marker (GH-112931) (GH-113427)

(cherry picked from commit bdc8d667ab545ccec0bf8c2769f5c5573ed293ea)

Co-authored-by: F-park <52167622+F-park@users.noreply.github.com>
22 months ago[3.12] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285)
Serhiy Storchaka [Sat, 23 Dec 2023 10:31:52 +0000 (12:31 +0200)] 
[3.12] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285)

Previously they worked differenly if dst is a symbolic link:
they modified the permission bits of dst itself rather than the file
it points to if follow_symlinks is true or src is not a symbolic link,
and did nothing if follow_symlinks is false and src is a symbolic link.

22 months ago[3.12] gh-113384: Skip test_freeze for framework builds on macOS (GH-113390) (#113395)
Miss Islington (bot) [Fri, 22 Dec 2023 11:06:46 +0000 (12:06 +0100)] 
[3.12] gh-113384: Skip test_freeze for framework builds on macOS (GH-113390) (#113395)

gh-113384: Skip test_freeze for framework builds on macOS (GH-113390)
(cherry picked from commit bee627c1e29a070562d1a540a6e513d0daa322f5)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
22 months ago[3.12] gh-65701: document that freeze doesn't work with framework builds on macOS...
Miss Islington (bot) [Fri, 22 Dec 2023 10:16:30 +0000 (11:16 +0100)] 
[3.12] gh-65701: document that freeze doesn't work with framework builds on macOS (GH-113352) (#113362)

gh-65701: document that freeze doesn't work with framework builds on macOS (GH-113352)

* gh-65701: document that freeze doesn't work with framework builds on macOS

The framework install is inherently incompatible with freeze. Document
that that freeze doesn't work with framework builds and bail out
early when trying to run freeze anyway.

(cherry picked from commit df1eec3dae3b1eddff819fd70f58b03b3fbd0eda)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>