]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
22 months ago[3.11] gh-74573: document that ndbm can silently corrupt databases on macOS (GH-11335...
Miss Islington (bot) [Sat, 23 Dec 2023 12:49:58 +0000 (13:49 +0100)] 
[3.11] gh-74573: document that ndbm can silently corrupt databases on macOS (GH-113354) (#113432)

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.11] gh-81682: Fix test failures when CPython is built without docstrings (GH-11341...
Serhiy Storchaka [Sat, 23 Dec 2023 11:38:07 +0000 (13:38 +0200)] 
[3.11] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113430)

(cherry picked from commit 4e5b27e6a3be85853bd04d45128dd7cc706bb1c8)

22 months ago[3.11] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285...
Miss Islington (bot) [Sat, 23 Dec 2023 10:53:48 +0000 (11:53 +0100)] 
[3.11] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285) (GH-113426)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] gh-112925: Fix error in example of `datetime.time.fromisoformat` and add docte...
Miss Islington (bot) [Sat, 23 Dec 2023 10:50:19 +0000 (11:50 +0100)] 
[3.11] gh-112925: Fix error in example of `datetime.time.fromisoformat` and add doctest marker (GH-112931) (GH-113428)

(cherry picked from commit bdc8d667ab545ccec0bf8c2769f5c5573ed293ea)

Co-authored-by: F-park <52167622+F-park@users.noreply.github.com>
22 months ago[3.11] gh-113384: Skip test_freeze for framework builds on macOS (GH-113390) (#113396)
Miss Islington (bot) [Fri, 22 Dec 2023 11:07:07 +0000 (12:07 +0100)] 
[3.11] gh-113384: Skip test_freeze for framework builds on macOS (GH-113390) (#113396)

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.11] gh-65701: document that freeze doesn't work with framework builds on macOS...
Miss Islington (bot) [Fri, 22 Dec 2023 10:16:59 +0000 (11:16 +0100)] 
[3.11] gh-65701: document that freeze doesn't work with framework builds on macOS (GH-113352) (#113361)

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>
22 months ago[3.11] gh-110383: Improve accuracy of str.split() and str.rsplit() docstrings (GH...
Hugo van Kemenade [Fri, 22 Dec 2023 07:43:38 +0000 (09:43 +0200)] 
[3.11] gh-110383: Improve accuracy of str.split() and str.rsplit() docstrings (GH-113355) (#113380)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
22 months ago[3.11] gh-113313: Note that slice support is not required for all sequences. (gh...
Miss Islington (bot) [Thu, 21 Dec 2023 22:01:25 +0000 (23:01 +0100)] 
[3.11] gh-113313: Note that slice support is not required for all sequences. (gh-113377) (gh-113383)

22 months ago[3.11] Docs: OpenSSL wording ambiguity (GH-113296) (#113349)
Miss Islington (bot) [Thu, 21 Dec 2023 07:56:34 +0000 (08:56 +0100)] 
[3.11] Docs: OpenSSL wording ambiguity (GH-113296) (#113349)

Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
22 months ago[3.11] gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344...
Miss Islington (bot) [Thu, 21 Dec 2023 07:47:20 +0000 (08:47 +0100)] 
[3.11] gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344) (#113347)

gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344)

A typo left this check broken so many of us who do out-of-tree builds
were seeing strange failures due to bad `Python/frozen_modules/*.h`
files being picked up from the source tree and used at build time from
different Python versions leading to errors like:

`Fatal Python error: _PyImport_InitCore: failed to initialize importlib`

Or similar once our build got to an "invoke the interpreter"
bootstrapping step due to incorrect bytecode being embedded.
(cherry picked from commit 103c4ea27464cef8d1793dab347f5ff3629dc243)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
22 months ago[3.11] GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (GH-11333...
Miss Islington (bot) [Thu, 21 Dec 2023 00:51:51 +0000 (01:51 +0100)] 
[3.11] GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (GH-113334) (#113340)

When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object.

This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).

(cherry picked from commit 1ff02385944924db7e683a607da2882462594764)

Co-authored-by: Martijn Pieters <mj@zopatista.com>
22 months ago[3.11] gh-113255: Clarify docs for `typing.reveal_type` (#113286) (#113326)
Alex Waygood [Wed, 20 Dec 2023 18:35:13 +0000 (18:35 +0000)] 
[3.11] gh-113255: Clarify docs for `typing.reveal_type` (#113286) (#113326)

(cherry-picked from commit 11ee912327)

Co-authored-by: Kir <note351@hotmail.com>
22 months ago[3.11] Fix typo in datamodel docs (GH-113314) (#113315)
Miss Islington (bot) [Wed, 20 Dec 2023 12:04:59 +0000 (13:04 +0100)] 
[3.11] Fix typo in datamodel docs (GH-113314) (#113315)

Fix typo in datamodel docs (GH-113314)
(cherry picked from commit 5a7cc667f816f0377f763322c2367301ea3379ee)

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
22 months ago[3.11] Fix typo in collections.abc docs example (GH-113310) (#113312)
Miss Islington (bot) [Wed, 20 Dec 2023 09:57:25 +0000 (10:57 +0100)] 
[3.11] Fix typo in collections.abc docs example (GH-113310) (#113312)

Fix typo in collections.abc docs example (GH-113310)

Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self"
(cherry picked from commit 22b8945d7678be86f801ca54f004a5dba2006835)

Co-authored-by: David Greaves <david@dgreaves.com>
22 months ago[3.11] gh-102362: Fix macOS version number in result of sysconfig.get_platform()...
Miss Islington (bot) [Tue, 19 Dec 2023 18:57:08 +0000 (19:57 +0100)] 
[3.11] gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942) (#113265)

gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942)

Change _osx_support.get_platform_osx() to make sure that the
version number in the result includes at least a major and
minor version (e.g. 14.2) even if MACOSX_DEPLOYMENT_TARGET is
set to just a major version (e.g. 14).

This matches the versions expected by pip when selecting
appropriate wheels for installation.
(cherry picked from commit 893c9ccf48eacb02fa6ae93632f2d0cb6778dbb6)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
22 months ago[3.11] gh-101100: Fix Sphinx warnings in `library/ast.rst` (GH-113289) (#113291)
Hugo van Kemenade [Tue, 19 Dec 2023 16:12:33 +0000 (18:12 +0200)] 
[3.11] gh-101100: Fix Sphinx warnings in `library/ast.rst` (GH-113289) (#113291)

22 months ago[3.11] gh-113234: tomllib docs: reorder conversion table & add remaining types (GH...
Miss Islington (bot) [Tue, 19 Dec 2023 10:36:01 +0000 (11:36 +0100)] 
[3.11] gh-113234: tomllib docs: reorder conversion table & add remaining types (GH-113236) (GH-113284)

gh-113234: tomllib docs: reorder conversion table & add remaining types (GH-113236)
(cherry picked from commit 76d757b38b414964546393bdccff31c1f8be3843)

Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
22 months ago[3.11] gh-113208: Mention namespace packages don't require __init__.py (GH-113209...
Miss Islington (bot) [Tue, 19 Dec 2023 08:46:08 +0000 (09:46 +0100)] 
[3.11] gh-113208: Mention namespace packages don't require __init__.py (GH-113209) (#113277)

Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
22 months ago[3.11] gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) (#113273)
Miss Islington (bot) [Tue, 19 Dec 2023 05:42:59 +0000 (06:42 +0100)] 
[3.11] gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) (#113273)

gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271)

Hangs on installed 3.13.0a2 on macOS Catalina.
Behavior on installed 3.12.1 and 3.11.7 is unknown.
(cherry picked from commit fa9ba02353d79632983b9fe24da851894877e342)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-113199: Make read1() and readline() of HTTPResponse close IO after reading...
Miss Islington (bot) [Mon, 18 Dec 2023 20:34:15 +0000 (21:34 +0100)] 
[3.11] gh-113199: Make read1() and readline() of HTTPResponse close IO after reading all data (GH-113200) (GH-113260)

(cherry picked from commit 41336a72b90634d5ac74a57b6826e4dd6fe78eac)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
22 months ago[3.11] gh-113246: Updated bundled pip to 23.3.2 (gh-113249) (#113254)
Stéphane Bidoul [Mon, 18 Dec 2023 11:34:58 +0000 (12:34 +0100)] 
[3.11] gh-113246: Updated bundled pip to 23.3.2 (gh-113249) (#113254)

Updated bundled pip to 23.3.2.
(cherry picked from commit 4a24bf9a13a7cf055113c04bde0874186722c62c)

22 months ago[3.11] gh-101100: Fix Sphinx warnings in library/tarfile.rst (GH-113237) (#113245)
Hugo van Kemenade [Mon, 18 Dec 2023 07:12:52 +0000 (09:12 +0200)] 
[3.11] gh-101100: Fix Sphinx warnings in library/tarfile.rst (GH-113237) (#113245)

22 months ago[3.11] Docs: Add label to grammar spec for linking from PEPs (GH-113235) (#113240)
Miss Islington (bot) [Sun, 17 Dec 2023 19:29:23 +0000 (20:29 +0100)] 
[3.11] Docs: Add label to grammar spec for linking from PEPs (GH-113235) (#113240)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.11] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the...
Miss Islington (bot) [Sun, 17 Dec 2023 11:20:28 +0000 (12:20 +0100)] 
[3.11] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the namspace packages support" (GH-113195) (GH-113229)

(cherry picked from commit 21d52995ea490328edf9be3ba072821cd445dd30)

Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
22 months ago[3.11] IDLE: Add util and stub example comments (GH-113222) (#113224)
Miss Islington (bot) [Sun, 17 Dec 2023 01:20:36 +0000 (02:20 +0100)] 
[3.11] IDLE: Add util and stub example comments (GH-113222) (#113224)

(cherry picked from commit cde1335485b7bffb12c378d230ae48ad77d76ab1)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-105912: document gotcha with using os.fork on macOS (GH-112871) (#113135)
Ronald Oussoren [Sat, 16 Dec 2023 09:13:01 +0000 (10:13 +0100)] 
[3.11] gh-105912: document gotcha with using os.fork on macOS (GH-112871) (#113135)

* gh-105912: document gotcha with using os.fork on macOS

Using ``fork(2)`` on macOS when also using higher-level
system APIs in the parent proces can crash on macOS because
those system APIs are not written to handle this usage
pattern.

There's nothing we can do about this other than documenting
the problem.

(cherry picked from commit 22511f77c2818a138a252e6ddae89725d082f8b0)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
22 months ago[3.11] gh-113046: Revise csv.reader doc (GH-113207) (#113211)
Miss Islington (bot) [Sat, 16 Dec 2023 08:18:45 +0000 (09:18 +0100)] 
[3.11] gh-113046: Revise csv.reader doc (GH-113207) (#113211)

Clarify nature of csvfile.
(cherry picked from commit 84df3172efe8767ddf5c28bdb6696b3f216bcaa6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-110746: Improve markup in ``tkinter.ttk.rst`` (GH-111236) (#113194)
Miss Islington (bot) [Fri, 15 Dec 2023 21:56:36 +0000 (22:56 +0100)] 
[3.11] gh-110746: Improve markup in ``tkinter.ttk.rst`` (GH-111236) (#113194)

gh-110746: Improve markup in ``tkinter.ttk.rst`` (GH-111236)

* gh-110746: Improve markup in tkinter.ttk.rst

* gh-110746: Improve markup in tkinter.ttk.rst

* 📜🤖 Added by blurb_it.

---------

(cherry picked from commit 00d2b6d1fca91e1a83f7f99a370685b095ed4928)

Co-authored-by: Akshat Khandelwal <35228810+akshatgokul@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
22 months ago[3.11] gh-101100: Fix various Sphinx warnings for dunder references in the `library...
Miss Islington (bot) [Fri, 15 Dec 2023 17:21:59 +0000 (18:21 +0100)] 
[3.11] gh-101100: Fix various Sphinx warnings for dunder references in the `library/` directory (GH-113163) (#113184)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/numbers.rst` (GH-113162) (#113181)
Miss Islington (bot) [Fri, 15 Dec 2023 17:17:14 +0000 (18:17 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/numbers.rst` (GH-113162) (#113181)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128)...
Miss Islington (bot) [Fri, 15 Dec 2023 15:20:18 +0000 (16:20 +0100)] 
[3.11] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128) (#113178)

gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128)

On Windows, Process.terminate() no longer sets the returncode
attribute to always call WaitForSingleObject() in Process.wait().
Previously, sometimes the process was still running after
TerminateProcess() even if GetExitCodeProcess() is not STILL_ACTIVE.
(cherry picked from commit 4026ad5b2c595b855a3605420cfa0e3d49e63db7)

Co-authored-by: Victor Stinner <vstinner@python.org>
22 months ago[3.11] gh-61648: Detect line numbers of properties in doctests (GH-113161) (GH-113165)
Miss Islington (bot) [Fri, 15 Dec 2023 13:38:45 +0000 (14:38 +0100)] 
[3.11] gh-61648: Detect line numbers of properties in doctests (GH-113161) (GH-113165)

(cherry picked from commit 8f8f0f97e126db9ca470fd7e7b2944c150db6305)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/rlcompleter.rst` (GH-113125) (...
Miss Islington (bot) [Fri, 15 Dec 2023 09:07:15 +0000 (10:07 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/rlcompleter.rst` (GH-113125) (#113159)

gh-101100: Fix Sphinx nitpicks in `library/rlcompleter.rst` (GH-113125)
(cherry picked from commit 7bb00f053e0a86bb8827cc464961a4fad9278e6d)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-101100: Cleanup `mailbox` docs (GH-113124) (#113145)
Hugo van Kemenade [Thu, 14 Dec 2023 21:26:49 +0000 (23:26 +0200)] 
[3.11] gh-101100: Cleanup `mailbox` docs (GH-113124) (#113145)

(cherry picked from commit 25061f5c98a47691fdb70f550943167bda77f6e0)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.3.rst` (GH-112373) (#113143)
Hugo van Kemenade [Thu, 14 Dec 2023 21:09:53 +0000 (23:09 +0200)] 
[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.3.rst` (GH-112373) (#113143)

22 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/collections.abc.rst` (GH-113116...
Miss Islington (bot) [Thu, 14 Dec 2023 19:32:37 +0000 (20:32 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/collections.abc.rst` (GH-113116) (#113137)

gh-101100: Fix Sphinx nitpicks in `library/collections.abc.rst` (GH-113116)
(cherry picked from commit 006355b2a966060541166608ecfec4c957b85f55)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/traceback.rst` (GH-113106) (#113112)
Miss Islington (bot) [Thu, 14 Dec 2023 14:17:13 +0000 (15:17 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/traceback.rst` (GH-113106) (#113112)

gh-101100: Fix Sphinx nitpicks in `library/traceback.rst` (GH-113106)
(cherry picked from commit d9e1b5794a8fade21773d18f91a07f80b55c839c)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/inspect.rst` and `reference/simple_...
Miss Islington (bot) [Thu, 14 Dec 2023 13:37:38 +0000 (14:37 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/inspect.rst` and `reference/simple_stmts.rst` (GH-113107) (#113110)

gh-101100: Fix Sphinx nitpicks in `library/inspect.rst` and `reference/simple_stmts.rst` (GH-113107)
(cherry picked from commit 4b3cb082da82da744f5db0b7315aa80558c51557)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770) (GH...
Serhiy Storchaka [Thu, 14 Dec 2023 12:59:33 +0000 (14:59 +0200)] 
[3.11] gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770) (GH-113105)

It was raised in two cases:
* in the import statement when looking up __import__
* in pickling some builtin type when looking up built-ins iter, getattr, etc.

(cherry picked from commit 1161c14e8c68296fc465cd48970b32be9bee012e)

22 months ago[3.11] gh-113090: Fix test.support.os_support.can_chmod() on Windows (GH-113091)...
Miss Islington (bot) [Thu, 14 Dec 2023 12:01:01 +0000 (13:01 +0100)] 
[3.11] gh-113090: Fix test.support.os_support.can_chmod() on Windows (GH-113091) (GH-113100)

(cherry picked from commit c6e953be125c491226adc1a5bc9c804ce256aa17)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] Fixing typo in DocTestRunner docs (GH-112326) (GH-113098)
Miss Islington (bot) [Thu, 14 Dec 2023 10:15:43 +0000 (11:15 +0100)] 
[3.11] Fixing typo in DocTestRunner docs (GH-112326) (GH-113098)

(cherry picked from commit b3c21265fa48a137a4c6a35e425b2b7f94f96cf4)

Co-authored-by: Daniel Wysocki <dwysocki@users.noreply.github.com>
22 months ago[3.11] gh-113086: Add tests for os.chmod() and os.lchmod() (GH-113087) (GH-113089)
Miss Islington (bot) [Thu, 14 Dec 2023 07:33:35 +0000 (08:33 +0100)] 
[3.11] gh-113086: Add tests for os.chmod() and os.lchmod() (GH-113087) (GH-113089)

Also make test_copymode_symlink_to_symlink in test_shutil more strict.
(cherry picked from commit b4f2c89118d5a48ce6c495ba931d7f6493422029)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] bpo-40648: Test modes that file can get with chmod() on Windows (GH-20130...
Miss Islington (bot) [Wed, 13 Dec 2023 20:48:43 +0000 (21:48 +0100)] 
[3.11] bpo-40648: Test modes that file can get with chmod() on Windows (GH-20130) (GH-113069)

Order of tests matter second part makes testing file writable and
possible to remove again.
(cherry picked from commit f5c05e015c178975f24b77e5a8975a22d694e019)

Co-authored-by: Pavol Babinčák‏ <scroolik@gmail.com>
22 months ago[3.11] gh-107959: clarify Unix-availability of `os.lchmod()` (GH-107960) (GH-113067)
Miss Islington (bot) [Wed, 13 Dec 2023 20:02:07 +0000 (21:02 +0100)] 
[3.11] gh-107959: clarify Unix-availability of `os.lchmod()` (GH-107960) (GH-113067)

gh-107959: clarify Unix-availability of `os.lchmod()` (GH-107960)

POSIX specifies that implementations are not required to support changing the
file mode of symbolic links, but may do so.
Consequently, `lchmod()` is not part of POSIX (but mentioned for implementations
which do support the above).

The current wording of the availability of `os.lchmod()` is rather vague and
improved to clearly tell which POSIX/Unix/BSD-like support the function in
general (those that support changing the file mode of symbolic links).
Further, some examples of major implementations are added.

Data for the BSDs taken from their online manpages.

(cherry picked from commit f14e3d59c955fb3cf89e5241727ec566164dcf42)

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
22 months ago[3.11] [doc] Make subprocess.wait documentation more precise (GH-98700) (#112154)
Miss Islington (bot) [Wed, 13 Dec 2023 20:01:36 +0000 (21:01 +0100)] 
[3.11] [doc] Make subprocess.wait documentation more precise (GH-98700) (#112154)

[doc] Make subprocess.wait documentation more precise (GH-98700)

[doc] Make subprocess.wait doc more precise

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.11] Docs: Fix external link to devguide.python.org (GH-112899) (#113064)
Miss Islington (bot) [Wed, 13 Dec 2023 19:48:44 +0000 (20:48 +0100)] 
[3.11] Docs: Fix external link to devguide.python.org (GH-112899) (#113064)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
22 months ago[3.11] gh-101100: Improve docs on exception attributes (GH-113057) (#113062)
Miss Islington (bot) [Wed, 13 Dec 2023 19:07:19 +0000 (20:07 +0100)] 
[3.11] gh-101100: Improve docs on exception attributes (GH-113057) (#113062)

gh-101100: Improve docs on exception attributes (GH-113057)

(cherry picked from commit d05a180350fe20d5fde56c7e525e394a0b282703)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
22 months ago[3.11] [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter...
Miss Islington (bot) [Wed, 13 Dec 2023 12:38:19 +0000 (13:38 +0100)] 
[3.11] [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (GH-112963) (#113052)

[pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (GH-112963)
(cherry picked from commit 2a3c37c273762d2dc40bfdae3899cb09b7c88d4a)

Co-authored-by: Sequew <88668176+KrySeyt@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
22 months ago[3.11] gh-101100: Fix Sphinx warning in references with asterisks (GH-113029) (#113044)
Hugo van Kemenade [Wed, 13 Dec 2023 09:02:20 +0000 (11:02 +0200)] 
[3.11] gh-101100: Fix Sphinx warning in references with asterisks (GH-113029) (#113044)

22 months ago[3.11] gh-101100: Further improve docs on function attributes (#113001) (#113031)
Alex Waygood [Tue, 12 Dec 2023 20:36:51 +0000 (20:36 +0000)] 
[3.11] gh-101100: Further improve docs on function attributes (#113001) (#113031)

(cherry-picked from commit 81a15ea74e)

22 months ago[3.11] gh-112999: Replace the outdated "deprecated" directives with "versionchanged...
Serhiy Storchaka [Tue, 12 Dec 2023 17:17:35 +0000 (19:17 +0200)] 
[3.11] gh-112999: Replace the outdated "deprecated" directives with "versionchanged" (GH-113000) (GH-113020)

(cherry picked from commit fe9991bb672dd95fb9cd38b5a03180719ac4e722)

22 months ago[3.11] Update pre-commit to fix Sphinx Lint (GH-113015) (#113018)
Miss Islington (bot) [Tue, 12 Dec 2023 16:30:49 +0000 (17:30 +0100)] 
[3.11] Update pre-commit to fix Sphinx Lint (GH-113015) (#113018)

Update pre-commit to fix Sphinx Lint (GH-113015)
(cherry picked from commit eafc2381a0b891383098b08300ae766868a19ba6)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.11] [3.12] gh-83162: Rename re.error in idlelib (GH-101677) (GH-112987) (#113013)
Miss Islington (bot) [Tue, 12 Dec 2023 16:21:07 +0000 (17:21 +0100)] 
[3.11] [3.12] gh-83162: Rename re.error in idlelib (GH-101677) (GH-112987) (#113013)

Backport idlelib part of GH-101677 with simple rename.
(cherry picked from commit fd3b8947256309ba478a4e3ba8c0c81b1260b67f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-101100: Improve documentation on function attributes (#112933) (#113003)
Alex Waygood [Tue, 12 Dec 2023 12:19:02 +0000 (12:19 +0000)] 
[3.11] gh-101100: Improve documentation on function attributes (#112933) (#113003)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.11] gh-112953: Rename idlelib/NEWS.txt to News3.txt and update (GH… (#112992)
Terry Jan Reedy [Tue, 12 Dec 2023 06:10:29 +0000 (01:10 -0500)] 
[3.11] gh-112953: Rename idlelib/NEWS.txt to News3.txt and update (GH… (#112992)

22 months ago[3.11] gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108...
Miss Islington (bot) [Mon, 11 Dec 2023 18:46:02 +0000 (19:46 +0100)] 
[3.11] gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108) (#112977)

gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108)
(cherry picked from commit 0738b9a338fd27ff2d4456dd9c15801a8858ffd9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
23 months ago[3.11] gh-94606: Fix error when message with Unicode surrogate not surrogateescaped...
Miss Islington (bot) [Mon, 11 Dec 2023 16:47:25 +0000 (17:47 +0100)] 
[3.11] gh-94606: Fix error when message with Unicode surrogate not surrogateescaped string (GH-94641) (GH-112972)

(cherry picked from commit 27a5fd8cb8c88537216d7a498eba9d9177951d76)

Co-authored-by: Sidney Markowitz <sidney@sidney.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
23 months ago[3.11] gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939...
Miss Islington (bot) [Mon, 11 Dec 2023 16:14:45 +0000 (17:14 +0100)] 
[3.11] gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939) (#112961)

gh-112898: warn about unsaved files when quitting IDLE on macOS (GH-112939)

* gh-112898: warn about unsaved files when quitting IDLE on macOS

Implement the TK function ``::tk::mac::Quit`` on macOS to
ensure that IDLE asks about saving unsaved files when
quitting IDLE.

(cherry picked from commit 3251ba8f1af535bf28e31a6832511ba19e96b262)

Co-authored-by: Christopher Chavez chrischavez@gmx.us
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
23 months ago[3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956)
Miss Islington (bot) [Mon, 11 Dec 2023 12:09:03 +0000 (13:09 +0100)] 
[3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956)

(cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
23 months ago[3.11] GH-101986: Support translation for Limited/Unstable API & Stable ABI (GH-10768...
Hugo van Kemenade [Sun, 10 Dec 2023 19:28:10 +0000 (21:28 +0200)] 
[3.11] GH-101986: Support translation for Limited/Unstable API & Stable ABI (GH-107680) (#112941)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
23 months ago[3.11] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112928)
Miss Islington (bot) [Sun, 10 Dec 2023 18:50:10 +0000 (19:50 +0100)] 
[3.11] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112928)

gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905)

On recentish macOS versions the system tar
command includes system metadata (ACLs, extended attributes
and resource forks) in the tar archive, which
shutil.make_archive will not do. This can cause
spurious test failures.
(cherry picked from commit dd2ebdf89ff144e89db180bd552c50615f712cb2)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
23 months ago[3.11] gh-101100: Fix Sphinx warning in library/http.cookies.rst (GH-112908) (#112930)
Miss Islington (bot) [Sun, 10 Dec 2023 12:59:29 +0000 (13:59 +0100)] 
[3.11] gh-101100: Fix Sphinx warning in library/http.cookies.rst (GH-112908) (#112930)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Fix Sphinx warning in library/http.cookies.rst (GH-112908)

23 months ago[3.11] Docs: Use 'f-strings' as header (GH-112888) (#112924)
Miss Islington (bot) [Sun, 10 Dec 2023 09:36:25 +0000 (10:36 +0100)] 
[3.11] Docs: Use 'f-strings' as header (GH-112888) (#112924)

Docs: Use 'f-strings' as header (GH-112888)
(cherry picked from commit 5bf7580d72259d7d64f5ee8cfc2df677de5310a4)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
23 months ago[3.11] IDLE: Tweak iomenu.IOBinding.maybesave (GH-112914) (#112918)
Miss Islington (bot) [Sun, 10 Dec 2023 02:56:07 +0000 (03:56 +0100)] 
[3.11] IDLE: Tweak iomenu.IOBinding.maybesave  (GH-112914) (#112918)

Add docstring, use f-string, simplify code.
(cherry picked from commit ca1bde894305a1b88fdbb191426547f35b7e9200)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
23 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/tempfile.rst` (#112886) (#112913)
Alex Waygood [Sat, 9 Dec 2023 22:56:01 +0000 (22:56 +0000)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/tempfile.rst` (#112886) (#112913)

(cherry-picked from commit 54410e6bd9)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
23 months ago[3.11] gh-101100: Improve documentation of `TracebackType` attributes (GH-112884...
Miss Islington (bot) [Sat, 9 Dec 2023 22:50:01 +0000 (23:50 +0100)] 
[3.11] gh-101100: Improve documentation of `TracebackType` attributes (GH-112884) (#112912)

gh-101100: Improve documentation of `TracebackType` attributes (GH-112884)
(cherry picked from commit 96f64a2b1b4e3d4902848c63e42717a9c5539e03)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-79429: Ignore FileNotFoundError when remove a temporary directory in the...
Miss Islington (bot) [Sat, 9 Dec 2023 13:31:42 +0000 (14:31 +0100)] 
[3.11] gh-79429: Ignore FileNotFoundError when remove a temporary directory in the multiprocessing finalizer (GH-112865) (GH-112897)

(cherry picked from commit 7e82c626c44a6924af38d0a8af3cc8b2d13873ec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
23 months ago[3.11] gh-101100: Fix Sphinx nits in `library/contextlib.rst` (#112870) (#112874)
Alex Waygood [Fri, 8 Dec 2023 14:03:15 +0000 (14:03 +0000)] 
[3.11] gh-101100: Fix Sphinx nits in `library/contextlib.rst` (#112870) (#112874)

(cherry-picked from commit e4c087603397a1314253b861d35f8314fba8ae92)

23 months ago[3.11] gh-101100: Improve documentation for attributes on instance methods (GH-112832...
Miss Islington (bot) [Fri, 8 Dec 2023 13:25:05 +0000 (14:25 +0100)] 
[3.11] gh-101100: Improve documentation for attributes on instance methods (GH-112832) (#112873)

gh-101100: Improve documentation for attributes on instance methods (GH-112832)
(cherry picked from commit ed21d0c1f4bd17b392e24bfd83e652723dad4ddf)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836) (#112869)
Miss Islington (bot) [Fri, 8 Dec 2023 12:38:40 +0000 (13:38 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836) (#112869)

gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836)
(cherry picked from commit 3cdcc2edf81c7be4c88d4f273947ce29f916f49a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-110190: Temporarily skip new test introduced in gh-112604 on PPC64LE (GH...
Łukasz Langa [Fri, 8 Dec 2023 11:47:32 +0000 (12:47 +0100)] 
[3.11] gh-110190: Temporarily skip new test introduced in gh-112604 on PPC64LE (GH-112818) (#112830)

(cherry picked from commit 9f67042f28bf886a9bf30fed6795d26cff255f1e)

23 months ago[3.11] gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH...
Miss Islington (bot) [Fri, 8 Dec 2023 09:08:04 +0000 (10:08 +0100)] 
[3.11] gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834) (#112852)

gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834)

Test test_stress_modifying_handlers in test_signal can crash
the interpreter due to a bug in macOS. Filed as FB13453490
with Apple.
(cherry picked from commit bf0beae6a05f3266606a21e22a4d803abbb8d731)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
23 months ago[3.11] gh-101100: Silence Sphinx warnings when `ntpath` or `posixpath` are referenced...
Alex Waygood [Thu, 7 Dec 2023 21:12:37 +0000 (21:12 +0000)] 
[3.11] gh-101100: Silence Sphinx warnings when `ntpath` or `posixpath` are referenced (#112833) (#112858)

(cherry-picked from commit 2c3906bc4b)

23 months ago[3.11] gh-79325: Fix recursion error in TemporaryDirectory cleanup on Windows (GH...
Serhiy Storchaka [Thu, 7 Dec 2023 17:46:30 +0000 (19:46 +0200)] 
[3.11] gh-79325: Fix recursion error in TemporaryDirectory cleanup on Windows (GH-112762) (GH-112848)

(cherry picked from commit b2923a61a10dc2717f4662b590cc9f6d181c6983)

23 months ago[3.11] gh-91133: tempfile.TemporaryDirectory: fix symlink bug in cleanup (GH-99930...
Serhiy Storchaka [Thu, 7 Dec 2023 16:37:10 +0000 (18:37 +0200)] 
[3.11] gh-91133: tempfile.TemporaryDirectory: fix symlink bug in cleanup (GH-99930) (GH-112839)

(cherry picked from commit 81c16cd94ec38d61aa478b9a452436dc3b1b524d)

Co-authored-by: Søren Løvborg <sorenl@unity3d.com>
23 months ago[3.11] gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) (#112825)
Miss Islington (bot) [Thu, 7 Dec 2023 10:28:54 +0000 (11:28 +0100)] 
[3.11] gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) (#112825)

gh-109981: Fix support.fd_count() on macOS 14 (GH-112797)

Use scanning "/dev/fd/" on macOS in support.fd_count(). That's both more efficient than scanning all possible file descriptors, and avoids crashing the interpreter when there are open "guarded" file descriptors.

"Guarded" file descriptors are a macOS feature where file descriptors used by system libraries are marked and cause hard crashes when used by "user" code.

(cherry picked from commit 953ee622b3901d3467e65e3484dcfa75ba6fcddf)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
23 months ago[3.11] gh-101100: Improve documentation of code object attributes (#112781) (#112817)
Alex Waygood [Wed, 6 Dec 2023 22:23:20 +0000 (22:23 +0000)] 
[3.11] gh-101100: Improve documentation of code object attributes (#112781) (#112817)

(cherry-picked from commit e9707d3c3d)

23 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (#112811) (#112815)
Alex Waygood [Wed, 6 Dec 2023 22:04:33 +0000 (22:04 +0000)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (#112811) (#112815)

(cherry-picked from commit 3870d19d15)

23 months ago[3.11] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112766)
Diego Russo [Wed, 6 Dec 2023 15:57:42 +0000 (15:57 +0000)] 
[3.11] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112766)

Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms.
This because on Arm platforms structs with at most 4 elements of any
floating point type values can be passed through registers. If the type
is double the maximum size of the struct is 32 bytes.
On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate.

(cherry picked from commit bc68f4a4abcfbea60bb1db1ccadb07613561931c)

23 months ago[3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH...
Miss Islington (bot) [Wed, 6 Dec 2023 15:04:07 +0000 (16:04 +0100)] 
[3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322) (GH-112801)

Previously, "widget.unbind(sequence, funcid)" destroyed the current binding
for "sequence", leaving "sequence" unbound, and deleted the "funcid"
command.

Now it removes only "funcid" from the binding for "sequence", keeping
other commands, and deletes the "funcid" command.
It leaves "sequence" unbound only if "funcid" was the last bound command.

(cherry picked from commit cc7e45cc572dd818412a649970fdee579417701f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com>
23 months ago[3.11] gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters...
Miss Islington (bot) [Wed, 6 Dec 2023 10:03:36 +0000 (11:03 +0100)] 
[3.11] gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742) (GH-112793)

gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742)

In the slot typedefs table, the parameter of `destructor`
and the first parameter of `traverseproc` should both be
`PyObject *` rather than `void *`.
Same for `inquiry`.
(cherry picked from commit 00cce0fe495ee820cd3ca5878bdbe3dd65b1be7b)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
23 months ago[3.11] gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH...
Miss Islington (bot) [Wed, 6 Dec 2023 08:50:49 +0000 (09:50 +0100)] 
[3.11] gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757) (#112790)

gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757)
(cherry picked from commit e3f670e13792305cfb977d5cffd8e6aa03e8fe7f)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-108927: Include new dir test/regrtestdata in the installation (GH-112765...
Serhiy Storchaka [Wed, 6 Dec 2023 08:12:08 +0000 (10:12 +0200)] 
[3.11] gh-108927: Include new dir test/regrtestdata in the installation (GH-112765) (GH-112784)

(cherry picked from commit f8c0198e3bfa2f6f65e426765a5efddd8ece78b0)

Co-authored-by: Victor Stinner <vstinner@python.org>
23 months ago[3.11] gh-101100: Properly document frame object attributes (#112735) (#112775)
Alex Waygood [Tue, 5 Dec 2023 20:23:25 +0000 (20:23 +0000)] 
[3.11] gh-101100: Properly document frame object attributes (#112735) (#112775)

* [3.11] gh-101100: Properly document frame object attributes (#112735)

(cherry-picked from commit d109f637c0)

23 months ago[3.11] gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with non-int...
Miss Islington (bot) [Tue, 5 Dec 2023 20:02:06 +0000 (21:02 +0100)] 
[3.11] gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with non-int suffix (GH-112771) (GH-112774)

zlib-ng defines the version as "1.3.0.zlib-ng".
(cherry picked from commit d384813ff18b33280a90b6d2011654528a2b6ad1)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
23 months ago[3.11] bpo-35332: Handle os.close() errors in shutil.rmtree() (GH-23766) (GH-112764)
Miss Islington (bot) [Tue, 5 Dec 2023 19:25:52 +0000 (20:25 +0100)] 
[3.11] bpo-35332: Handle os.close() errors in shutil.rmtree() (GH-23766) (GH-112764)

* Ignore os.close() errors when ignore_errors is True.
* Pass os.close() errors to the error handler if specified.
* os.close no longer retried after error.

(cherry picked from commit 11d88a178b077e42025da538b890db3151a47070)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
23 months ago[3.11] bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` during tempd...
Miss Islington (bot) [Tue, 5 Dec 2023 13:44:49 +0000 (14:44 +0100)] 
[3.11] bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` during tempdirectory cleanup (GH-29940) (GH-112754)

(cherry picked from commit 8cdfee1bb902fd1e38d79170b751ef13a0907262)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
23 months ago[3.11] gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs...
Miss Islington (bot) [Tue, 5 Dec 2023 10:06:30 +0000 (11:06 +0100)] 
[3.11] gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737) (#112749)

gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737)
(cherry picked from commit 2f20cafdbfc39925f9374f36f9d53bac365ed32a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-62897: Update PyUnicode C API parameter names (GH-12680) (GH-112745)
Serhiy Storchaka [Tue, 5 Dec 2023 09:35:36 +0000 (11:35 +0200)] 
[3.11] gh-62897: Update PyUnicode C API parameter names (GH-12680) (GH-112745)

Standardize PyUnicode C API parameter names across the documentation.

(cherry picked from commit b31232ddf7f219ca8ff9e8d0401c02eb0b6ffec3)

Co-authored-by: Rune Tynan <runetynan@gmail.com>
23 months agoMerge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Mon, 4 Dec 2023 21:50:17 +0000 (21:50 +0000)] 
Merge remote-tracking branch 'upstream/3.11' into 3.11

23 months agoPost 3.11.7
Pablo Galindo [Mon, 4 Dec 2023 21:49:55 +0000 (21:49 +0000)] 
Post 3.11.7

23 months ago[3.11] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to...
Miss Islington (bot) [Mon, 4 Dec 2023 20:20:41 +0000 (21:20 +0100)] 
[3.11] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) (#112725)

gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615)

Work around a macOS bug, limit zlib crc32 calls to 1GiB.

Without this, `zlib.crc32` and `binascii.crc32` could produce incorrect
results on multi-gigabyte inputs depending on the macOS version's Apple
supplied zlib implementation.
(cherry picked from commit 4eddb4c9d9452482c9af7fa9eec223d12b5a9f33)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
23 months agoPython 3.11.7 v3.11.7
Pablo Galindo [Mon, 4 Dec 2023 17:54:29 +0000 (17:54 +0000)] 
Python 3.11.7

23 months ago[3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112712)
Miss Islington (bot) [Mon, 4 Dec 2023 16:16:03 +0000 (17:16 +0100)] 
[3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112712)

It breaks import machinery if the test module has submodules used in
other tests.
(cherry picked from commit e08b70fab1fbc45fa498020aac522ae1d5da6136)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
23 months ago[3.11] GH-112160: Pin to manifest of quay.io/tiran/cpython_autoconf (#112161)
Seth Michael Larson [Mon, 4 Dec 2023 16:02:45 +0000 (10:02 -0600)] 
[3.11] GH-112160: Pin to manifest of quay.io/tiran/cpython_autoconf (#112161)

23 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703) (#112704)
Miss Islington (bot) [Mon, 4 Dec 2023 12:48:58 +0000 (13:48 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703) (#112704)

gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703)
(cherry picked from commit 9560e0d6d7a316341939b4016e47e03bd5bf17c3)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-109786: Fix leaks and crash when re-enter itertools.pairwise.__next__(...
Miss Islington (bot) [Mon, 4 Dec 2023 12:20:19 +0000 (13:20 +0100)] 
[3.11] gh-109786: Fix leaks and crash when re-enter itertools.pairwise.__next__() (GH-109788) (GH-112700)

(cherry picked from commit 6ca9d3e0173c38e2eac50367b187d4c1d43f9892)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
23 months ago[3.11] gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (GH-109814...
Miss Islington (bot) [Mon, 4 Dec 2023 11:54:39 +0000 (12:54 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (GH-109814) (#112701)

gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (GH-109814)
(cherry picked from commit f2eaa92b0cc5a37a9e6010c7c6f5ad1a230ea49b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
23 months ago[3.11] gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) (#112698)
Miss Islington (bot) [Mon, 4 Dec 2023 11:11:24 +0000 (12:11 +0100)] 
[3.11] gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) (#112698)

gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669)
(cherry picked from commit cda737924fd616c4e08027888258f97e81f34447)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
23 months ago[3.11] gh-112625: Protect bytearray from being freed by misbehaving iterator inside...
Miss Islington (bot) [Mon, 4 Dec 2023 08:37:25 +0000 (09:37 +0100)] 
[3.11] gh-112625: Protect bytearray from being freed by misbehaving iterator inside bytearray.join (GH-112626) (GH-112694)

(cherry picked from commit 0e732d0997cff08855d98c17af4dd5527f10e419)

Co-authored-by: chilaxan <chilaxan@gmail.com>