summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows ↵Serhiy Storchaka2023-12-233-23/+43
| | | | | | | | | (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.
* [3.12] gh-113384: Skip test_freeze for framework builds on macOS (GH-113390) ↵Miss Islington (bot)2023-12-221-0/+2
| | | | | | | | (#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>
* [3.12] gh-65701: document that freeze doesn't work with framework builds on ↵Miss Islington (bot)2023-12-223-0/+12
| | | | | | | | | | | | | | | | 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>
* [3.12] gh-110383: Improve accuracy of str.split() and str.rsplit() ↵Hugo van Kemenade2023-12-222-5/+9
| | | | | | docstrings (GH-113355) (#113379) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-113313: Note that slice support is not required for all sequences. ↵Miss Islington (bot)2023-12-211-3/+3
| | | | (gh-113377) (gh-113382)
* [3.12] gh-113343: Fix error check on mmap(2) (GH-113342) (#113374)Miss Islington (bot)2023-12-211-1/+1
| | | | | | | | | | | | | | | | | gh-113343: Fix error check on mmap(2) (GH-113342) Fix error check on mmap(2) It should check MAP_FAILED instead of NULL for error. On mmap(2) man page: RETURN VALUE On success, mmap() returns a pointer to the mapped area. On error, the value MAP_FAILED (that is, (void *) -1) is returned, and errno is set to indicate the error. (cherry picked from commit 6b70c3dc5ab2f290fcdbe474bcb7d6fdf29eae4c) Co-authored-by: Namhyung Kim <namhyung@gmail.com>
* [3.12] Docs: OpenSSL wording ambiguity (GH-113296) (#113348)Miss Islington (bot)2023-12-211-1/+1
| | | | Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
* [3.12] gh-112305: Fix check-clean-src to detect frozen_modules .h files. ↵Miss Islington (bot)2023-12-212-2/+7
| | | | | | | | | | | | | | | | | | (GH-113344) (#113346) 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>
* [3.12] GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios ↵Miss Islington (bot)2023-12-213-8/+21
| | | | | | | | | | | (GH-113334) (#113339) 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>
* [3.12] gh-113255: Clarify docs for `typing.reveal_type` (GH-113286) (#113323)Miss Islington (bot)2023-12-202-14/+13
| | | | | | | gh-113255: Clarify docs for `typing.reveal_type` (GH-113286) (cherry picked from commit 11ee912327ef51100d2a6b990249f25b6b1b435d) Co-authored-by: Kir <note351@hotmail.com> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* [3.12] Fix typo in datamodel docs (GH-113314) (#113316)Miss Islington (bot)2023-12-201-1/+1
| | | | | | 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>
* [3.12] Fix typo in collections.abc docs example (GH-113310) (#113311)Miss Islington (bot)2023-12-201-1/+1
| | | | | | | | 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>
* [3.12] gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS ↵Miss Islington (bot)2023-12-194-0/+10
| | | | | | | | | | | | (GH-113213) (#113294) gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS (GH-113213) Adding this key with a value of true enables detecting the users prefered language in libraries accessing system APIs for this. (cherry picked from commit 4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* [3.12] gh-102362: Fix macOS version number in result of ↵Miss Islington (bot)2023-12-192-0/+8
| | | | | | | | | | | | | | | | sysconfig.get_platform() (GH-112942) (#113264) 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>
* [3.12] gh-101100: Fix Sphinx warnings in `library/ast.rst` (GH-113289) (#113290)Hugo van Kemenade2023-12-192-16/+19
|
* [3.12] gh-113234: tomllib docs: reorder conversion table & add remaining ↵Miss Islington (bot)2023-12-191-1/+7
| | | | | | | | types (GH-113236) (GH-113283) 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>
* [3.12] gh-113208: Mention namespace packages don't require __init__.py ↵Miss Islington (bot)2023-12-191-1/+2
| | | | | | | (GH-113209) (#113276) Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.12] gh-113269: IDLE - Fix test_editor hang (macOS) (GH-113271) (#113272)Miss Islington (bot)2023-12-193-1/+4
| | | | | | | | | 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>
* [3.12] gh-113199: Make read1() and readline() of HTTPResponse close IO after ↵Miss Islington (bot)2023-12-183-2/+21
| | | | | | | reading all data (GH-113200) (GH-113259) (cherry picked from commit 41336a72b90634d5ac74a57b6826e4dd6fe78eac) Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
* [3.12] gh-113246: Updated bundled pip to 23.3.2 (gh-113249) (#113253)Stéphane Bidoul2023-12-183-1/+2
| | | | | | | | * [3.12] gh-113246: Updated bundled pip to 23.3.2 (gh-113249) Updated bundled pip to 23.3.2. (cherry picked from commit 4a24bf9a13a7cf055113c04bde0874186722c62c) Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
* [3.12] gh-101100: Fix Sphinx warnings in library/tarfile.rst (GH-113237) ↵Hugo van Kemenade2023-12-182-12/+56
| | | | (#113244)
* [3.12] Docs: Add label to grammar spec for linking from PEPs (GH-113235) ↵Miss Islington (bot)2023-12-171-0/+2
| | | | | | (#113239) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-112890: `unittest` Test Discovery page updated "`unittest` dropped ↵Miss Islington (bot)2023-12-171-2/+2
| | | | | | | the namspace packages support" (GH-113195) (GH-113228) (cherry picked from commit 21d52995ea490328edf9be3ba072821cd445dd30) Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
* [3.12] IDLE: Add util and stub example comments (GH-113222) (#113223)Miss Islington (bot)2023-12-172-3/+5
| | | | | (cherry picked from commit cde1335485b7bffb12c378d230ae48ad77d76ab1) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-105912: document gotcha with using os.fork on macOS (GH-112871) ↵Miss Islington (bot)2023-12-163-0/+21
| | | | | | | | | | | | | | | | | | | | (#113133) gh-105912: document gotcha with using os.fork on macOS (GH-112871) * 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: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* [3.12] gh-113046: Revise csv.reader doc (GH-113207) (#113210)Miss Islington (bot)2023-12-161-4/+7
| | | | | | Clarify nature of csvfile. (cherry picked from commit 84df3172efe8767ddf5c28bdb6696b3f216bcaa6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] Add reshape() recipe to demonstrate a use case for batched() and ↵Miss Islington (bot)2023-12-161-3/+24
| | | | chained.from_iterable() (gh-113198) (gh-113201)
* [3.12] Use match/case in grouper() recipe (gh-113059) (gh-113197)Miss Islington (bot)2023-12-151-8/+9
|
* [3.12] Minor stylistic edit to the grouper recipe (gh-112759) (gh-113196)Miss Islington (bot)2023-12-151-2/+2
|
* [3.12] gh-110746: Improve markup in ``tkinter.ttk.rst`` (GH-111236) (#113193)Miss Islington (bot)2023-12-152-15/+17
| | | | | | | | | | | | | | | | | 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>
* [3.12] gh-101100: Fix various Sphinx warnings for dunder references in the ↵Miss Islington (bot)2023-12-158-24/+34
| | | | | | `library/` directory (GH-113163) (#113183) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/numbers.rst` (GH-113162) ↵Hugo van Kemenade2023-12-152-10/+10
| | | | | | (#113182) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-113009: Fix multiprocessing Process.terminate() on Windows ↵Miss Islington (bot)2023-12-152-24/+35
| | | | | | | | | | | | | (GH-113128) (#113177) 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>
* [3.12] gh-61648: Detect line numbers of properties in doctests (GH-113161) ↵Miss Islington (bot)2023-12-154-0/+21
| | | | | | | (GH-113164) (cherry picked from commit 8f8f0f97e126db9ca470fd7e7b2944c150db6305) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/rlcompleter.rst` ↵Miss Islington (bot)2023-12-153-19/+24
| | | | | | | | (GH-113125) (#113158) 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>
* [3.12] Optimize unique_justseen() recipe for a common case. (gh-113147) ↵Miss Islington (bot)2023-12-141-0/+2
| | | | (gh-113150)
* [3.12] gh-101100: Cleanup `mailbox` docs (GH-113124) (#113144)Hugo van Kemenade2023-12-142-123/+139
| | | | | (cherry picked from commit 25061f5c98a47691fdb70f550943167bda77f6e0) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/2.3.rst` (GH-112373) ↵Hugo van Kemenade2023-12-142-140/+139
| | | | | | (#113142) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Remove itertool recipe with low pedagogical value (gh-113138) (gh-113140)Miss Islington (bot)2023-12-141-32/+32
|
* [3.12] bpo-36796: Clean the error handling in _testcapimodule.c (GH-13085) ↵Miss Islington (bot)2023-12-142-14/+50
| | | | | | | (GH-113132) (cherry picked from commit a723a13bf135306cdc5999a959596bfb487e8f4f) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/collections.abc.rst` ↵Miss Islington (bot)2023-12-143-41/+43
| | | | | | | | (GH-113116) (#113136) 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>
* [3.12] Add recipe for totient() to demonstrate unique_justseen() and ↵Miss Islington (bot)2023-12-141-0/+27
| | | | factor(). (gh-113131) (gh-113134)
* [3.12] gh-113113: doc: use less ambiguously named variable (gh-113114) ↵Miss Islington (bot)2023-12-141-3/+3
| | | | (gh-113122)
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/traceback.rst` (GH-113106) ↵Miss Islington (bot)2023-12-143-38/+75
| | | | | | | | (#113111) 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>
* [3.12] gh-101100: Fix Sphinx nitpicks in `library/inspect.rst` and ↵Miss Islington (bot)2023-12-143-5/+7
| | | | | | | | `reference/simple_stmts.rst` (GH-113107) (#113109) 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>
* [3.12] gh-112716: Fix SystemError when __builtins__ is not a dict ↵Serhiy Storchaka2023-12-143-9/+33
| | | | | | | | | (GH-112770) (GH-113103) 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)
* [3.12] gh-113090: Fix test.support.os_support.can_chmod() on Windows ↵Miss Islington (bot)2023-12-144-6/+12
| | | | | | | (GH-113091) (GH-113099) (cherry picked from commit c6e953be125c491226adc1a5bc9c804ce256aa17) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-111049: Fix crash during garbage collection of the BytesIO buffer ↵Miss Islington (bot)2023-12-143-10/+27
| | | | | | | object (GH-111221) (GH-113096) (cherry picked from commit bb36f72efcc6a656e0907ffa83620a1e44044895) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fixing typo in DocTestRunner docs (GH-112326) (GH-113097)Miss Islington (bot)2023-12-141-1/+1
| | | | | (cherry picked from commit b3c21265fa48a137a4c6a35e425b2b7f94f96cf4) Co-authored-by: Daniel Wysocki <dwysocki@users.noreply.github.com>
* [3.12] gh-113086: Add tests for os.chmod() and os.lchmod() (GH-113087) ↵Miss Islington (bot)2023-12-142-1/+118
| | | | | | | | (GH-113088) 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>