summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-101100: Fix Sphinx warnings in `library/pyclbr.rst` (GH-113739) ↵Miss Islington (bot)2024-01-053-50/+58
| | | | | | | (#113748) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-80532: Do not set ipv6type when cross-compiling (GH-17956) (#113740)Miss Islington (bot)2024-01-053-2/+3
| | | | | | (cherry picked from commit 5e1916ba1bf521d6ff9d2c553c057f3ef7008977) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Xavier de Gaye <xdegaye@gmail.com>
* [3.12] gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959) (#113170)Diego Russo2024-01-054-207/+209
| | | | | | | 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
* [3.12] gh-101100: Fix Sphinx warnings for 2.6 deprecations and removals ↵Miss Islington (bot)2024-01-058-57/+57
| | | | | | | | (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>
* [3.12] gh-113703: Correctly identify incomplete f-strings in the codeop ↵Pablo Galindo Salgado2024-01-053-3/+12
| | | | | module (GH-113709) (#113733) (cherry picked from commit 3003fbbf00422bce6e327646063e97470afa9091)
* [3.12] gh-113320: Reduce the number of dangerous `getattr()` calls when ↵Alex Waygood2024-01-053-15/+66
| | | | | | | | | 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)
* [3.12] gh-113696: Docs: Annotate PyObject_CallOneArg and PyObject_CallNoArgs ↵Miss Islington (bot)2024-01-051-0/+7
| | | | | | | as returning a strong reference (GH-113697) (#113698) (cherry picked from commit 1ae7ceba29771baf8f2e8d2d4c50a0355cb6b5c8) Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
* [3.12] gh-113538: Don't error in stream reader protocol callback when task ↵Miss Islington (bot)2024-01-043-7/+21
| | | | | | | is cancelled (GH-113690) (#113713) (cherry picked from commit 4681a5271a8598b46021cbc556ac8098ab8a1d81) Co-authored-by: Guido van Rossum <guido@python.org>
* [3.12] Document the `co_lines` method on code objects (#113682) (#113686)Alex Waygood2024-01-035-11/+49
| | | | | (cherry-picked from commit f1f839243251fef7422c31d6a7c3c747e0b5e27c) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings for removed dead batteries (GH-113669) ↵Hugo van Kemenade2024-01-0319-49/+49
| | | | | | | (#113681) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-113637: Let c_annotations.py to handle the spacing of ↵Miss Islington (bot)2024-01-033-12/+14
| | | | | | Limited/Unstable API & Stable ABI translation strings (GH-113638) (#113676) Co-authored-by: Ege Akman <egeakmanegeakman@hotmail.com>
* [3.12] `functools.partial` docs: Use the more common spelling for ↵Miss Islington (bot)2024-01-031-1/+1
| | | | | | | | "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>
* [3.12] gh-113628: Fix test_site test with long stdlib paths (GH-113640) ↵Miss Islington (bot)2024-01-031-22/+21
| | | | | | | | (#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>
* [3.12] gh-113602: Bail out when the parser tries to override existing errors ↵Miss Islington (bot)2024-01-023-0/+8
| | | | | | | | | (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>
* [3.12] Use the official term "free-threading" for GitHub Action (g… (#113646)Donghee Na2024-01-022-6/+6
|
* [3.12] gh-101100: Fix Sphinx warnings from removed `~!` references ↵Hugo van Kemenade2024-01-022-4/+4
| | | | | | | (GH-113629) (#113641) (cherry picked from commit 7595380347610598a3f5529214a449660892537b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-81094: Refer to PEP 318 in compound_statements.rst (GH-113588) ↵Miss Islington (bot)2024-01-021-1/+4
| | | | | | | (#113643) Co-authored-by: John D. McDonald <43117960+Rasputin2@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH- gh-111700: Fix syntax highlighting for C code in the "What's New ↵Miss Islington (bot)2024-01-011-1/+3
| | | | | | | | | | 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>
* [3.12] gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL ↵Miss Islington (bot)2023-12-311-1/+1
| | | | | | | | 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>
* [3.12] gh-101100: Fix Sphinx warnings in `library/configparser.rst` ↵Hugo van Kemenade2023-12-3111-36/+35
| | | | | | | (GH-113598) (#113599) (cherry picked from commit 30a6d79fb8bc1ef96600c290c016720103b74b2d) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Update ConfigParser docs defining valid section name (GH-110506) ↵Miss Islington (bot)2023-12-301-1/+1
| | | | | | (#113589) Co-authored-by: Delgan <4193924+Delgan@users.noreply.github.com>
* [3.12] gh-89414: Document that SIGCLD is not available on macOS (GH-113580) ↵Miss Islington (bot)2023-12-301-0/+2
| | | | | | | | | | (#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>
* [3.12] gh-113543: Make sure that `MacOSXOSAScript` sends `webbrowser.open` ↵Miss Islington (bot)2023-12-292-0/+3
| | | | | | | | 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>
* [3.12] Doc/library/os.rst: `os.waitid` absent on MacOS (GH-104558) (#113553)Miss Islington (bot)2023-12-291-0/+3
| | | | | | | | | | 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>
* [3.12] gh-101100: Fix Sphinx warnings in library/random.rst (GH-112981) ↵Miss Islington (bot)2023-12-282-16/+44
| | | | | | | (#113551) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] bpo-11102: Make configure enable major(), makedev(), and minor() on ↵Miss Islington (bot)2023-12-284-4/+9
| | | | | | | | | | 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>
* [3.12] gh-110459: Make sure --with-openssl-rpath works on macOS (GH-113441) ↵Miss Islington (bot)2023-12-283-2/+14
| | | | | | | | | | | | | (#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>
* [3.12] gh-57795: Add news to idlelib/News3.txt (GH-113522) (#113523)Miss Islington (bot)2023-12-271-0/+4
| | | | | | gh-57795: Add news to idlelib/News3.txt (GH-113522) (cherry picked from commit 6c98fce33a4c2d6671978f6286377af0d6e22182) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-67641: Clarify documentation on bytes vs text with non-seeking ↵Miss Islington (bot)2023-12-272-8/+11
| | | | | | | tarfile stream (GH-31610) (GH-113519) (cherry picked from commit 0651936ae2bc6999f488f8c519b8d07a06a11557) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.12] bpo-26791: Update shutil.move() to provide the same symlink move ↵Miss Islington (bot)2023-12-273-1/+34
| | | | | | | 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>
* [3.12] gh-57795: IDLE: Enter the selected text when opening the "Replace" ↵Miss Islington (bot)2023-12-272-16/+8
| | | | | | | | | 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>
* [3.12] gh-111615: Fix regression in QueueHandler configuration. (GH-111638) ↵Miss Islington (bot)2023-12-273-17/+40
| | | | (GH-113507)
* [3.12] gh-101100: Fix Sphinx warnings in `library/cmd.rst` (GH-113502) (#113511)Hugo van Kemenade2023-12-272-12/+14
| | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Fix Sphinx warnings in `library/calendar.rst` (GH-113500) ↵Hugo van Kemenade2023-12-272-4/+10
| | | | (#113509)
* [3.12] gh-101100: Fix Sphinx warnings in `library/bisect.rst` (GH-113496) ↵Miss Islington (bot)2023-12-262-5/+4
| | | | | | (#113504) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] bpo-36959: Fix error messages for invalid ISO format string in ↵Miss Islington (bot)2023-12-263-40/+61
| | | | | | | | | | | _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>
* [3.12] gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.rst` ↵Miss Islington (bot)2023-12-262-3/+2
| | | | | | (GH-113493) (#113497) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Docs: make htmllive: open browser when ready (GH-113288) (#113484)Miss Islington (bot)2023-12-261-3/+7
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-113468: Remove the "_new_ suffix from class names in pydocfodder ↵Miss Islington (bot)2023-12-261-8/+8
| | | | | | | (GH-113469) (GH-113483) (cherry picked from commit 8a3d0e4a661e6c27e4c17c818ce4187a36579e5f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Misc minor improvements to the itertools recipes (gh-113477) (gh-113478)Miss Islington (bot)2023-12-251-81/+83
|
* [3.12] gh-106905: Use separate structs to track recursion depth in each ↵Serhiy Storchaka2023-12-254-328/+420
| | | | | | | | | 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>
* [3.12] gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253) ↵Miss Islington (bot)2023-12-251-1/+1
| | | | | | | (GH-112297) (cherry picked from commit e1540ae74d1fce62f53e25838ba21746ba5d8444) Co-authored-by: James Turk <dev@jamesturk.net>
* [3.12] bpo-37013: Fix the error handling in socket.if_indextoname() ↵Miss Islington (bot)2023-12-253-5/+27
| | | | | | | | | (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>
* [3.12] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470)Jeff Allen2023-12-251-0/+4
| | | | | 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.
* [3.12] [doc] Make subprocess.wait documentation more precise (GH-98700) ↵Miss Islington (bot)2023-12-251-3/+4
| | | | | | | | | | | | | (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>
* [3.12] docs: specify that PyBytes_AsStringAndSize returns 0 on success ↵Miss Islington (bot)2023-12-251-0/+1
| | | | | | | (GH-110888) (GH-111690) (cherry picked from commit 9f33ede12710c454643c394421f52d209247272c) Co-authored-by: lefp <70862148+lefp@users.noreply.github.com>
* [3.12] gh-113407: Fix import of unittest.mock when CPython is built without ↵Miss Islington (bot)2023-12-242-5/+12
| | | | | | | docstrings (GH-113408) (GH-113454) (cherry picked from commit 0c574540e07792cef5487aef61ab38bfe404060f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 ↵Miss Islington (bot)2023-12-241-0/+2
| | | | | | | (GH-113435) (GH-113453) (cherry picked from commit 53330f167792a2947ab8b0faafb11019d7fb09b6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-113421: Fix multiprocessing logger for "%(filename)s" (GH-113423) ↵Miss Islington (bot)2023-12-243-4/+28
| | | | | | | (GH-113450) (cherry picked from commit ce77ee50358c0668eda5078f50b38f0770a370ab) Co-authored-by: Xu Song <xusong.vip@gmail.com>
* [3.12] gh-113028: Correctly memoize str in pickle when escapes added ↵Miss Islington (bot)2023-12-243-7/+21
| | | | | | | | | | (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>