summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] Clarify `Self` interaction with subclasses (GH-107511) (#107548)Miss Islington (bot)2023-08-011-10/+21
| | | | | | Clarify `Self` interaction with subclasses (GH-107511) (cherry picked from commit c8872f4285d3b61c252e3384bec6d30618b7d698) Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
* [3.12] gh-106092: Fix use-after-free crash in frame_dealloc (GH-106875) ↵Miss Islington (bot)2023-08-012-6/+9
| | | | | | | | | | | | | | | | (#107532) gh-106092: Fix use-after-free crash in frame_dealloc (GH-106875) It was possible for the trashcan to delay the deallocation of a PyFrameObject until after its corresponding _PyInterpreterFrame has already been freed. So frame_dealloc needs to avoid dereferencing the f_frame pointer unless it first checks that the pointer still points to the interpreter frame within the frame object. (cherry picked from commit 557b05c7a5334de5da3dc94c108c0121f10b9191) Signed-off-by: Anders Kaseorg <andersk@mit.edu> Co-authored-by: Anders Kaseorg <andersk@mit.edu>
* [3.12] gh-105766: Document that Custom Allocators Must Be Thread-Safe ↵Miss Islington (bot)2023-07-312-0/+13
| | | | | | | | (gh-107519) (gh-107522) gh-105766: Document that Custom Allocators Must Be Thread-Safe (gh-107519) (cherry picked from commit db361a340af3970c279908c8746a6b9ed45f47b8) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-99113: Add a What's New Entry for PEP 684 (gh-107520) (gh-107523)Miss Islington (bot)2023-07-311-0/+40
| | | | | | gh-99113: Add a What's New Entry for PEP 684 (gh-107520) (cherry picked from commit 79e479c45fc63b6001b206fec832064c31fc1f11) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-107306: Add a Doc Entry for Py_mod_multiple_interpreters ↵Miss Islington (bot)2023-07-313-0/+34
| | | | | | | | | | (GH-107403) (gh-107521) gh-107306: Add a Doc Entry for Py_mod_multiple_interpreters (GH-107403) It was added in 3.12 for PEP 684 (per-interpreter GIL). (cherry picked from commit fb344e99aa0da5bef9318684ade69978585fe060) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-107507: Replace 'The goals of Argument Clinic' with a summary ↵Miss Islington (bot)2023-07-311-54/+4
| | | | | | | | | (GH-107508) (#107516) Summarise the goals of Argument Clinic in a single sentence. Mention that Argument Clinic was introduced with PEP-436. (cherry picked from commit abb71c6a8f73482c910ffdf050a86089a48e0e60) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) ↵Miss Islington (bot)2023-07-312-1/+5
| | | | | | | | (GH-107509) gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (cherry picked from commit de51dede5b48ef23d7d33d92f3616824e23fd205) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.12] GH-101291: Add warning to "what's new" that `PyLongObject` internals ↵Miss Islington (bot)2023-07-311-0/+11
| | | | | | | have changed. (GH-107388) (#107392) (cherry picked from commit 1ee605c5888fbc3d51b3e7610bac38ea6bc25e31) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.12] gh-106368: Add test for Argument Clinic misbehaving custom ↵Miss Islington (bot)2023-07-311-0/+20
| | | | | | | converter_init() (GH-107496) (#107499) (cherry picked from commit 2c5d206b33e4cdcafaaaf1eeaa189c10de332dc5) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-105578: Add more usage examples to `typing.AnyStr` docs ↵Miss Islington (bot)2023-07-311-0/+15
| | | | | | | | | | (GH-107045) (#107503) gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-107045) ``typing.AnyStr`` has different semantics to ``str | bytes``, which often leads to user confusion (cherry picked from commit f877b32b879f2076bb1c52826af0c28ebf1aaeed) Co-authored-by: Michael The <michael-the1@users.noreply.github.com>
* [3.12] gh-105751: Remove obsolete `object` base class in some ctypes tests ↵Łukasz Langa2023-07-314-11/+11
| | | | | | | (GH-107460) (#107501) (cherry picked from commit 520efecfc3aed34d3a44545c7cd872d1aea8c7dc) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.12] gh-106263: Fix segfault in `signaldict_repr` in `_decimal` module ↵Charlie Zhao2023-07-314-3/+59
| | | | | | | (#… (#107491) Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> (cherry picked from commit 3979150a0d406707f6d253d7c15fb32c1e005a77)
* [3.12] gh-102509: Start initializing `ob_digit` of `_PyLongValue` ↵Miss Islington (bot)2023-07-312-0/+5
| | | | | | | | (GH-102510) (#107464) gh-102509: Start initializing `ob_digit` of `_PyLongValue` (GH-102510) (cherry picked from commit fc130c47daa715d60d8925c478a96d5083e47b6a) Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
* [3.12] gh-46376: Return existing pointer when possible in ctypes (GH-107131) ↵Łukasz Langa2023-07-313-0/+57
| | | | | | | (#107487) (cherry picked from commit 08447b5deb47e2a0df87fa0a0576d300e5c909b4) Co-authored-by: Konstantin <kpp.live+github@gmail.com>
* [3.12] gh-104280: Add test cases for DTrace probes (GH-107125) (#107489)Miss Islington (bot)2023-07-311-0/+82
| | | | | | gh-104280: Add test cases for DTrace probes (GH-107125) (cherry picked from commit a1c737b73d3658be0e1d072a340d42e3d96373c6) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
* [3.12] gh-105751, test_ctypes: Remove disabled tests (GH-105826) (#107483)Łukasz Langa2023-07-315-133/+0
| | | | | | | | | | | | | | | | | * The following tests were disabled since the initial ctypes commit in 2006, commit babddfca758abe34ff12023f63b18d745fae7ca9: * Callbacks.test_char_p() * DeletePointerTestCase.test_X() * NumberTestCase.test_perf() * StructureTestCase.test_subclass_creation() * Tests.test_X() of test_byteswap * NumberTestCase.test_bool_from_address() was disabled in 2007 by commit 5dc4fe09b7648f9801558e766b21a3d3b2dcad3b. * Remove check_perf() and run_test() of test_numbers. (cherry picked from commit 8f10140e74d141a0a894702044e213e6f0690d9c) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-99079: add What's New item (GH-107481)Ned Deily2023-07-311-0/+2
|
* [3.12] Update macOS installer screens for 3.12rc/final. (GH-107473)Ned Deily2023-07-312-36/+3
|
* [3.12] gh-99079: Update macOS installer to use OpenSSL 3.0.9. (gh-107472)Ned Deily2023-07-313-131/+184
|
* [3.12] gh-107427: Update the description of UNPACK_SEQUENCE (gh-107429) ↵Miss Islington (bot)2023-07-301-2/+3
| | | | (gh-107459)
* [3.12] Fix the documentation for PyCode_New add `qualname` parameter ↵Miss Islington (bot)2023-07-291-4/+4
| | | | | | | | (GH-107186) (#107440) Fix the documentation for PyCode_New add `qualname` parameter (GH-107186) (cherry picked from commit f2abeb590dae5918388f91b60b31f040d44218f0) Co-authored-by: da-woods <dw-git@d-woods.co.uk>
* [3.12] gh-107422: Remove outdated `TypedDict` example from typing docs ↵Miss Islington (bot)2023-07-291-3/+0
| | | | | | | | (GH-107436) (#107437) gh-107422: Remove outdated `TypedDict` example from typing docs (GH-107436) (cherry picked from commit 89fd4f4a3fc5fb8076ec064c22a30108480e946b) Co-authored-by: Rakesh Sabale <102187286+ghubrakesh@users.noreply.github.com>
* [3.12] gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) ↵Serhiy Storchaka2023-07-2952-139/+125
| | | | | (GH-107419) (cherry picked from commit f2d07d3289947d10b065b2bb7670c8fb6b6582f2)
* [3.12] gh-107091: Fix some uses of :func: role (GH-107378) (GH-107416)Serhiy Storchaka2023-07-296-19/+19
| | | | :c:func: or :c:macro: should be used instead. (cherry picked from commit 413ba8943e2f1d896a0568eb571a041b88589440)
* [3.12] gh-106881: Check for linux/limits.h before including it (#107397) ↵justdan62023-07-285-2/+12
| | | | | | | | (#107414) * Check for linux/limits.h before including it Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit 11c055f5ff1a353de6d2e77f2af24aaa782878ba)
* [3.12] gh-105699: Use a _Py_hashtable_t for the PyModuleDef Cache ↵Eric Snow2023-07-286-26672/+26592
| | | | | | | | | | | | | (gh-106974) (gh-107412) gh-105699: Use a _Py_hashtable_t for the PyModuleDef Cache (gh-106974) This fixes a crasher due to a race condition, triggered infrequently when two isolated (own GIL) subinterpreters simultaneously initialize their sys or builtins modules. The crash happened due the combination of the "detached" thread state we were using and the "last holder" logic we use for the GIL. It turns out it's tricky to use the same thread state for different threads. Who could have guessed? We solve the problem by eliminating the one object we were still sharing between interpreters. We replace it with a low-level hashtable, using the "raw" allocator to avoid tying it to the main interpreter. We also remove the accommodations for "detached" thread states, which were a dubious idea to start with. (cherry picked from commit 8ba4df91ae60833723d8d3b9afeb2b642f7176d5)
* [3.12] gh-107307: Update the importlib Docs for PEP 684 (gh-107400) (gh-107413)Miss Islington (bot)2023-07-281-0/+31
| | | | | | gh-107307: Update the importlib Docs for PEP 684 (gh-107400) (cherry picked from commit cf63df88d38ec3e6ebd44ed184312df9f07f9782) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-104629: Build _testclinic extension module on Windows (GH-104723) ↵Miss Islington (bot)2023-07-286-2/+169
| | | | | | | (#107393) (cherry picked from commit 3a1d819ebc36189e086198212822c9b29384f242) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-107305: Update the C-API Docs for PEP 684 (gh-107324) (gh-107402)Miss Islington (bot)2023-07-282-15/+197
| | | | | | gh-107305: Update the C-API Docs for PEP 684 (gh-107324) (cherry picked from commit c0b81c4b5438a3565fadd9d6f5bc69f989a3fdee) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-107091: Fix some uses of :const: role (GH-107379) (GH-107384)Miss Islington (bot)2023-07-2810-30/+29
| | | | | | It is for references, not for literals. (cherry picked from commit 0aa58fa7a62cd0ee7ec27fa87122425aeff0467d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-106898: Add the exception as an argument to the `PY_UNWIND` event ↵Mark Shannon2023-07-284-6/+29
| | | | callback function. (GH-107347) (GH-107382)
* [3.12] GH-106895: Raise a `ValueError` when attempting to disable events ↵Mark Shannon2023-07-288-144/+207
| | | | that cannot be disabled. (GH-107337) (GH-107351)
* [3.12] GH-106897: Add `RERAISE` event to `sys.monitoring`. (GH-107291) ↵Mark Shannon2023-07-289-1203/+1404
| | | | | | (GH-107346) * Ensures that exception handling events are balanced. Each [re]raise event has a matching unwind/handled event.
* [3.12] gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) ↵Serhiy Storchaka2023-07-2819-79/+88
| | | | | (GH-107380) (cherry picked from commit 983305268e2291b0a7835621b81bf40cba7c27f3)
* [3.12] gh-107298: Fix more Sphinx warnings in the C API doc (GH-107329) ↵Serhiy Storchaka2023-07-2823-119/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-107376) Declare the following functions as macros, since they are actually macros. It avoids a warning on "TYPE" or "macro" argument. * PyMem_New() * PyMem_Resize() * PyModule_AddIntMacro() * PyModule_AddStringMacro() * PyObject_GC_New() * PyObject_GC_NewVar() * PyObject_New() * PyObject_NewVar() Add C standard C types to nitpick_ignore in Doc/conf.py: * int64_t * uint64_t * uintptr_t No longer ignore non existing "__int" type in nitpick_ignore. Update Doc/tools/.nitignore. (cherry picked from commit 8d61a71f9c81619e34d4a30b625922ebc83c561b) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-107298: Fix Sphinx warnings in the C API doc (GH-107302) (GH-107375)Serhiy Storchaka2023-07-2812-37/+29
| | | | | (cherry picked from commit 391e03fa05b80d17a14ac88d30c974fa2fa00adb) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-106723: forward -Xfrozen_modules option to spawned process ↵Miss Islington (bot)2023-07-282-1/+2
| | | | | | | | | | interpreters (GH-106724) (#107367) gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724) (cherry picked from commit 3dcac785810df4d9db50abe90847eaf03bbdaaf4) Co-authored-by: Felipe A. Hernandez <ergoithz@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-107298: Fix doc references to undocumented modules (GH-107300) ↵Miss Islington (bot)2023-07-288-12/+11
| | | | | | | | (GH-107370) Update also Doc/tools/.nitignore. (cherry picked from commit 87b39028e5f453a949a1675526c439f6479a04a8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-106368: Argument clinic tests: improve failure message when tests ↵Miss Islington (bot)2023-07-281-1/+1
| | | | | | | | in `ClinicExternalTests` fail (GH-107364) (#107365) gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (GH-107364) (cherry picked from commit 76c26eaca4147ba7e3e8d7379c5a828f0b512a46) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-104621: Check for Incompatible Extensions in ↵Miss Islington (bot)2023-07-274-16/+50
| | | | | | | | | | import_find_extension() (gh-107184) (gh-107360) gh-104621: Check for Incompatible Extensions in import_find_extension() (gh-107184) This fixes a bug where incompatible modules could still be imported if attempted multiple times. (cherry picked from commit 75c974f5353685f338344618ad7344e64c2293d0) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-104432: Use `memcpy()` to avoid misaligned loads (GH-104433) (#107355)Miss Islington (bot)2023-07-273-7/+29
| | | | | | | | | | gh-104432: Use `memcpy()` to avoid misaligned loads (GH-104433) Fix potential unaligned memory access on C APIs involving returned sequences of `char *` pointers within the :mod:`grp` and :mod:`socket` modules. These were revealed using a ``-fsaniziter=alignment`` build on ARM macOS. (cherry picked from commit f01e4cedba1a17d321664834bb255d9d04ad16ce) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-105699: Disable the Interpreters Stress Tests (gh-107354) (gh-107357)Miss Islington (bot)2023-07-271-0/+1
| | | | | | | | | gh-105699: Disable the Interpreters Stress Tests (gh-107354) The two tests are crashing periodically in CI and on buildbots. I suspect the problem is in the _xxsubinterpreters module. Regardless, I'm disabling the tests temporarily, to reduce the noise as we approach 3.12rc1. I'll be investigating the crashes separately. (cherry picked from commit 4f67921ad28194155e3d4c16255fb140a6a4d89a) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-101524: Only Use Public C-API in the _xxsubinterpreters Module ↵Miss Islington (bot)2023-07-2712-37/+39
| | | | | | | | (gh-105258) (gh-107303) The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that. (cherry picked from commit e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] Bump some docs dependencies to resolve a Dependabot security alert ↵Miss Islington (bot)2023-07-271-5/+5
| | | | | | | | (GH-107341) (#107342) Bump some docs dependencies to resolve a Dependabot security alert (GH-107341) (cherry picked from commit f84d77b4e07aeb6241c1ff9932627d3ba059efa8) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-106996: Rewrite turtle explanation (GH-107244) (#107335)Miss Islington (bot)2023-07-271-54/+38
| | | | | Co-authored-by: Daniele Procida <daniele@vurt.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Docs: Argument Clinic: Restructure "Basic concepts and usage" ↵Miss Islington (bot)2023-07-272-50/+142
| | | | | | | | | | | | | | | | | | | (GH-106981) (#107325) Split "Basic concepts and usage" into: - Reference - Terminology - CLI reference - Background - Basic concepts (cherry picked from commit 2ad699002e3ce09e9fa41e333ac72f16a32d94de) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-107298: Docs: add targets for some :c:member: and :c:macro: ↵Miss Islington (bot)2023-07-273-40/+40
| | | | | | | | | | references (GH-107316) (GH-107332) Add targets for PyStructSequence_Desc and PyStructSequence_Field members and macros like Py_EQ. Fix target for Py_RETURN_RICHCOMPARE. (cherry picked from commit abec9a1b20b70d8ced401d59fc4f02b331c6568b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107091: Fix some uses of :attr: role (GH-107318) (GH-107330)Serhiy Storchaka2023-07-279-58/+64
| | | | | Fix also formatting of PyMethodDef members. (cherry picked from commit d363eb5b0255c055e7b43f5e2c0847f555e1982e)
* [3.12] Docs: Remove the numbered steps from the Argument Clinic tutorial ↵Miss Islington (bot)2023-07-261-314/+310
| | | | | | | | | | (GH-107203) (#107317) Instead, order the tutorial as one body of prose, making it easier to align the tutorial according to Diátaxis principles. (cherry picked from commit 592395577c679543d899e68a3cff538b8b4df80d) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." ↵Miss Islington (bot)2023-07-263-2/+19
| | | | | | | | | | | (GH-107014) (#107315) gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (GH-107014) It makes sense to raise an Error because ".." can not be resolved and the current working directory is unknown. (cherry picked from commit e7e6e4b035f51ab4a962b45a957254859f264f4f) Co-authored-by: János Kukovecz <kukoveczjanos@gmail.com>