-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backport a9a74da 3.13 #119642
Closed
Closed
backport a9a74da 3.13 #119642
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cherry picked from commit c68311d) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
) Docs: fix typos in documentation (pythonGH-118752) (cherry picked from commit 7b0c247) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
…ose with a default when constructing aliases (pythonGH-118774) (python#118776) (cherry picked from commit aac6b01) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…elves (pythonGH-117099) (python#118790) docs: module page titles should not start with a link to themselves (pythonGH-117099) (cherry picked from commit bcb435e) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
…nGH-118758) (pythonGH-118792) (cherry picked from commit 05c2fe1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…bits` (pythonGH-118292) (python#118796) Use relaxed atomics when reading / writing to the field. There are still a few places in the GC where we do not use atomics. Those should be safe as the world is stopped. (cherry picked from commit cb6f75a) Co-authored-by: mpage <mpage@meta.com>
…uires_resource('cpu')`` decorator (pythonGH-118801) (python#118818) [tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource('cpu')`` decorator (pythonGH-118801) Mark test_kde_random with a requires_resource('cpu') decorator (cherry picked from commit 027e6d8) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
…sses (pythonGH-118099) (python#118821) pythongh-118033: Fix `__weakref__` not set for generic dataclasses (pythonGH-118099) (cherry picked from commit fa9b9cb) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…8737) Update docs for CVE-2024-4030 reference
…line (pythonGH-103958) (pythonGH-118834) Print only filename with lineno if linecache.getline() returns an empty string. (cherry picked from commit 7c87ce7) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
… (python#118847) (cherry picked from commit c3643a1) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
…{enter,exit}__` (pythonGH-118812) (python#118856) These methods are purely wrappers around `Semlock.{acquire,release}`, which expect a critical section to be held. (cherry picked from commit c30d8e5) Co-authored-by: mpage <mpage@meta.com>
…s for ACLs. (pythonGH-118800) (cherry picked from commit 8af84b5) Co-authored-by: Steve Dower <steve.dower@python.org>
…`dictobject.c` (pythonGH-118850) (python#118859) pythongh-118849: Fix "code will never be executed" warning in `dictobject.c` (pythonGH-118850) (cherry picked from commit 82abe75) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…ded build (pythonGH-118723) (python#118863) The `list_preallocate_exact` function did not zero initialize array contents. In the free-threaded build, this could expose uninitialized memory to concurrent readers between the call to `list_preallocate_exact` and the filling of the array contents with items. (cherry picked from commit 2402715) Co-authored-by: Sam Gross <colesbury@gmail.com>
… current file (pythonGH-118808) (python#118866) Some embedders and extensions include parts of the internal API. The pycore_mimalloc.h file is transitively include by a number of other internal headers. This avoids include errors for code that was already including those headers. (cherry picked from commit 71cc065) Co-authored-by: Sam Gross <colesbury@gmail.com>
…H-118862) (python#118867) Avoid immortalizing objects in tests that verify garbage collection of classes or modules. This fixes test_ordered_dict and test_struct. (cherry picked from commit 1b1db2f) Co-authored-by: Sam Gross <colesbury@gmail.com>
…ules (pythonGH-118722) (python#118870) Using `race:` filters out warnings if the function appears anywhere in the stack trace. This can hide a lot of unrelated warnings, especially for a function like `_PyEval_EvalFrameDefault`, which is somewhere on the stack more often than not. Change all free-threaded suppressions to `race_top:`, which only matches the top frame, and add any new suppressions this exposes. (cherry picked from commit 98ff3f6) Co-authored-by: Brett Simmers <swtaarrs@users.noreply.github.com>
…Load() (pythonGH-118854) (python#118871) (cherry picked from commit 68fbc00) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
…dles a NULL object (pythonGH-115433)" (pythonGH-118861) (python#118872) This reverts commit ad4f909. The API ended up not being used. (cherry picked from commit 46c8081) Co-authored-by: Sam Gross <colesbury@gmail.com>
(cherry picked from commit 7e6fcab) Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit 7ac933e) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
…dule (pythonGH-118213) (cherry picked from commit e85e8de) Co-authored-by: Dobatymo <Dobatymo@users.noreply.github.com>
…onGH-118896) (python#118898) Rename `notimplemented_methods` into `nodefault_methods` (pythonGH-118896) (cherry picked from commit 004db21) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…H-118797) (pythonGH-118903) pythongh-118789: Restore hidden `_PyWeakref_ClearRef` (pythonGH-118797) _PyWeakref_ClearRef was previously exposed in the public C-API, although it begins with an underscore and is not documented. It's used by a few C-API extensions. There is currently no alternative public API that can replace its use. _PyWeakref_ClearWeakRefsExceptCallbacks is the only thread-safe way to use _PyWeakref_ClearRef in the free-threaded build. This exposes the C symbol, but does not make the API public. (cherry picked from commit db5af7d) Co-authored-by: Sam Gross <colesbury@gmail.com>
…hreads.main` (pythonGH-118865) (python#118904) Use relaxed loads/stores when reading/writing to this field. (cherry picked from commit 22d5185) Co-authored-by: mpage <mpage@meta.com>
…andbelow` in `secrets.rst` (pythonGH-118098) (pythonGH-118906) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (pythonGH-118098) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`. (cherry picked from commit c444362) Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
…thon#118905) `_Py_qsbr_unregister` is called when the PyThreadState is already detached, so the access to `tstate->qsbr` isn't safe without locking the shared mutex. Grab the `struct _qsbr_shared` from the interpreter instead. (cherry picked from commit 33d2019) Co-authored-by: Alex Turner <alexturner@meta.com>
hugovk
removed request for
tiran,
ericvsmith,
abalkin,
barneygale,
ncoghlan,
iritkatriel,
pfmoore,
ericsnowcurrently,
hugovk,
pganssle,
rhettinger,
willingc,
gvanrossum,
pradyunsg,
serhiy-storchaka,
corona10,
ethanfurman,
markshannon,
pablogsal,
FFY00,
hauntsaninja,
erlend-aasland,
sethmlarson,
terryjreedy,
lysnikolaou,
ezio-melotti,
brandtbucher,
isidentical,
kumaraditya303 and
AlexWaygood
May 28, 2024 05:30
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ob_gc_bits
(gh-117657: Fix data races when writing / readingob_gc_bits
#118292) ([3.13] gh-117657: Fix data races when writing / readingob_gc_bits
(GH-118292) #118796)test_statistics.test_kde_random
with arequires_resource('cpu')
decorator ([tests]: Marktest_statistics.test_kde_random
with arequires_resource('cpu')
decorator #118801) ([3.13] [tests]: Marktest_statistics.test_kde_random
with arequires_resource('cpu')
decorator (GH-118801) #118818)dataclasses
: 3.12.3 regression withweakref_slot
#118033: Fix__weakref__
not set for generic dataclasses (gh-118033: Fix__weakref__
not set for generic dataclasses #118099) ([3.13] gh-118033: Fix__weakref__
not set for generic dataclasses (GH-118099) #118821)mkdir(mode=0o700)
to work on Windows #118486: Update docs for CVE-2024-4030 reference (gh-118486: Update docs for CVE-2024-4030 reference #118737)trace
: line tracing output lacks newlines if source lines are not available #103956: Fixtrace
output in case of missing source line (gh-103956: fixtrace
output in case of missing source line #103958) ([3.13] gh-103956: Fixtrace
output in case of missing source line (GH-103958) #118834)test_os
fails on Windows #118802: Fix ACL use in test for non-English Windows (gh-118802: Fix ACL use in test for non-English Windows #118831)asyncio REPL
is not working on Windows #118817: Fixasyncio REPL
on Windows (gh-118817: Fixasyncio REPL
on Windows #118819) ([3.13] gh-118817: Fixasyncio REPL
on Windows (GH-118819) #118847)SemLock.__{enter,exit}__
(gh-117657: Acquire a critical section aroundSemLock.__{enter,exit}__
#118812) ([3.13] gh-117657: Acquire a critical section aroundSemLock.__{enter,exit}__
(GH-118812) #118856)dictobject.c
#118849: Fix "code will never be executed" warning indictobject.c
(gh-118849: Fix "code will never be executed" warning indictobject.c
#118850) ([3.13] gh-118849: Fix "code will never be executed" warning indictobject.c
(GH-118850) #118859)test_free_threading.test_racing_iter_extend
crash #118561: Fix crash involving list.extend in free-threaded build (gh-118561: Fix crash involving list.extend in free-threaded build #118723) ([3.13] gh-118561: Fix crash involving list.extend in free-threaded build (GH-118723) #118863)Py_BEGIN_CRITICAL_SECTION
that accepts aNULL
argument #115432: Add critical section variant that handles a NULL object (gh-115432: Add critical section variant that handles a NULL object #115433)" (Revert "gh-115432: Add critical section variant that handles a NULL object (#115433)" #118861) ([3.13] Revert "gh-115432: Add critical section variant that handles a NULL object (GH-115433)" (GH-118861) #118872)notimplemented_methods
intonodefault_methods
(Renamenotimplemented_methods
intonodefault_methods
#118896) ([3.13] Renamenotimplemented_methods
intonodefault_methods
(GH-118896) #118898)_PyWeakref_ClearRef
and_PyWeakref_ClearWeakRefsExceptCallbacks
should be exposed in 3.13 #118789: Restore hidden_PyWeakref_ClearRef
(gh-118789: Restore hidden_PyWeakref_ClearRef
#118797) ([3.13] gh-118789: Restore hidden_PyWeakref_ClearRef
(GH-118797) #118903)interp->threads.main
(gh-117657: Fix data races reported by TSAN oninterp->threads.main
#118865) ([3.13] gh-117657: Fix data races reported by TSAN oninterp->threads.main
(GH-118865) #118904)secrets.choice
andsecrets.randbelow
insecrets.rst
(Correct the argument names forsecrets.choice
andsecrets.randbelow
insecrets.rst
#118098) ([3.13] Correct the argument names forsecrets.choice
andsecrets.randbelow
insecrets.rst
(GH-118098) #118906)typing.NoDefault
raisesTypeError
, but should raiseAttributeError
#118895: Call PyType_Ready() on typing.NoDefault (gh-118895: Call PyType_Ready() on typing.NoDefault #118897) ([3.13] gh-118895: Call PyType_Ready() on typing.NoDefault (GH-118897) #118914)frame.f_locals.copy()
return a snapshot dict off_locals
#118921: Addcopy()
method forFrameLocalsProxy
(gh-118921: Addcopy()
method forFrameLocalsProxy
#118923) ([3.13] gh-118921: Addcopy()
method forFrameLocalsProxy
(GH-118923) #118933)test_strptime
raises a DeprecationWarning #117655: Preventtest_strptime
from raising a DeprecationWarning (gh-117655: Fixtest_strptime
raises a DeprecationWarning #117668) ([3.13] gh-117655: Preventtest_strptime
from raising a DeprecationWarning (GH-117668) #118956)NotImplemented
is never tested with attribute assignment #118899: Add tests forNotImplemented
attribute access (gh-118899: Add tests forNotImplemented
attribute access #118902) ([3.13] gh-118899: Add tests forNotImplemented
attribute access (GH-118902) #118968)inspect.signature.bind
handling of positional-only arguments with**kwargs
#103404) ([3.13] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments with **kwargs (GH-103404) #118985)rmtree
doc fordir_fd
param addition in 3.11 (Improve thermtree
doc fordir_fd
param addition in 3.11 #118964) ([3.13] Improve thermtree
doc fordir_fd
param addition in 3.11 (GH-118964) #118991)__type_params__
in the documentation offunctools.update_wrapper
. #119010: Adds docs about__type_params__
tofunctools.update_wrapper
(gh-119010: Adds docs about__type_params__
tofunctools.update_wrapper
#119012) ([3.13] gh-119010: Adds docs about__type_params__
tofunctools.update_wrapper
(GH-119012) #119013)tmtotuple
intimemodule
#118998: Handle errors correctly intmtotuple
intimemodule
(gh-118998: Handle errors correctly intmtotuple
intimemodule
#118999) ([3.13] gh-118998: Handle errors correctly intmtotuple
intimemodule
(GH-118999) #119018)--enable-experimental-jit
fails to build:AssertionError: SHT_NOTE
in 3.13.0b1 #118836: Fix JIT build error when SHT_NOTE section is present ([3.13] GH-118836: Fix JIT build error when SHT_NOTE section is present (GH-119000) #119020)exec()
(typing tests: remove some unnecessary uses ofexec()
#119005) ([3.13] typing tests: remove some unnecessary uses ofexec()
(GH-119005) #119038)mkdir(mode=0o700)
to work on Windows #118486: Simplify test_win32_mkdir_700 to check the exact ACL (gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL #119056)jit.c
may be built with an incompletejit_stencils.h
#118943: Fix a race condition when generating jit_stencils.h ([3.13] GH-118943: Fix a race condition when generating jit_stencils.h (GH-118957) #119101)import warnings
in pathlib #119049: Fix incorrect display of warning which is constructed by C API (gh-119049: Fix incorrect usage ofGET_WARNINGS_ATTR
#119063) ([3.13] gh-119049: Fix incorrect display of warning which is constructed by C API (GH-119063) #119106)--duration
option to the test suite #119050: Add type hints to libregrtest/results.py (gh-119050: Add type hints to libregrtest/results.py #119144) ([3.13] gh-119050: Add type hints to libregrtest/results.py (GH-119144) #119156)posixpath.realpath('secretlink')
raises #118447: Fix handling of unreadable symlinks inos.path.realpath()
(GH-118447: Fix handling of unreadable symlinks inos.path.realpath()
#118489) ([3.13] GH-118447: Fix handling of unreadable symlinks inos.path.realpath()
(GH-118489) #119163)posixpath.realpath('secretlink')
raises #118447: Fix FreeBSD test failures. (GH-118447: Fix FreeBSD test failures. #119170) ([3.13] GH-118447: Fix FreeBSD test failures. (GH-119170) #119181)TypeError
frompathlib.PurePath.with_suffix(None)
(GH-119113: RaiseTypeError
frompathlib.PurePath.with_suffix(None)
#119124) ([3.13] GH-119113: RaiseTypeError
frompathlib.PurePath.with_suffix(None)
(GH-119124) #119183)asyncio.staggered
is missingtyping
import #119121: Fix and testasync.staggered.staggered_race
(gh-119121: Fix and testasync.staggered.staggered_race
#119173) ([3.13] gh-119121: Fix and testasync.staggered.staggered_race
(GH-119173) #119206)_pyrepl.pager
:tempfilepager
should betempfile_pager
(gh-119185: Fix typo in_pyrepl.pager
:tempfilepager
should betempfile_pager
#118881) ([3.13] gh-119185: Fix typo in_pyrepl.pager
:tempfilepager
should betempfile_pager
(GH-118881) #119211)libmpdec
sources #115119: Fall back to bundled libmpdec if system libmpdec is not found (gh-115119: Fall back to bundled libmpdec if system libmpdec is not found #119196) ([3.13] gh-115119: Fall back to bundled libmpdec if system libmpdec is not found (GH-119196) #119217)paths
injit.yml
#119146: Don't run JIT CI on unrelated changes ([3.13] GH-119146: Don't run JIT CI on unrelated changes (GH-119147) #119226)_ios_support
raises RuntimeError on Windows #119253: use ImportError in _ios_support (gh-119253: use ImportError in _ios_support #119254) ([3.13] gh-119253: use ImportError in _ios_support (GH-119254) #119265)--duration
option to the test suite #119050: Add XML support to libregrtest refleak checker (gh-119050: Add XML support to libregrtest refleak checker #119148) ([3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) #119270)fail-fast: false
inmypy.yml
(Usefail-fast: false
inmypy.yml
#119297) ([3.13] Usefail-fast: false
inmypy.yml
(GH-119297) #119304)list.__getitem__
#119053: Implement the fast path for list.getitem (gh-119053: Implement the fast path for list.__getitem__ #119112) ([3.13] gh-119053: Implement the fast path for list.__getitem__ (gh-119112) #119309)jit.yml
to build and test with--disable-gil
#119292: Add job to JIT CI to build and test with --disable-gil ([3.13] GH-119292: Add job to JIT CI to build and test with --disable-gil (GH-119293) #119314)socket.makefile()
accepts combined modes (gh-110383: Documentsocket.makefile()
accepts combined modes #119150) ([3.13] gh-110383: Documentsocket.makefile()
accepts combined modes (GH-119150) #119324)nt._path_is*
&nt._path_[l]exists
#118507 : Refactornt._path_is*
to improve applicability for other cases (gh-118507 : Refactornt._path_is*
#118755)AssertionError
occurs using 3.130b1 interactive mode when pressed tab and up arrow #118877: Fix AssertionError crash in pyrepl (gh-118877: Fix AssertionError crash in pyrepl #118936) ([3.13] gh-118877: Fix AssertionError crash in pyrepl (GH-118936) #119363)get
,fromkeys
, andsetdefault
signatures in docs #119330) ([3.13] gh-110383: Align dict.get(), .fromkeys(), and .setdefault() docs with docstrings (GH-119330) #119370)pyrepl
type-annotation coverage (Improvepyrepl
type-annotation coverage #119081) ([3.13] Improvepyrepl
type-annotation coverage (GH-119081) #119415)PyDict_SetDefault
that returns a new reference (instead of a borrowed reference) #112066: Fix versionadded in PyDict_SetDefaultRef docs (gh-112066: Fix versionadded in PyDict_SetDefaultRef docs #118696) ([3.13] gh-112066: Fix versionadded in PyDict_SetDefaultRef docs (GH-118696) #119430)Lib/_pyrepl
(Enable some stricter mypy settings onLib/_pyrepl
#119077) ([3.13] Enable some stricter mypy settings onLib/_pyrepl
(GH-119077) #119428)object.__sizeof__
(GH-117195: Avoid assertion error inobject.__sizeof__
#117220) ([3.13] GH-117195: Avoid assertion error inobject.__sizeof__
(GH-117220) #119456)PyThreadState_DeleteCurrent
: drop_gil: GIL is not locked (free-threading) #118727: Don't drop the GIL indrop_gil()
unless the current thread holds it (gh-118727: Don't drop the GIL indrop_gil()
unless the current thread holds it #118745) ([3.13] gh-118727: Don't drop the GIL indrop_gil()
unless the current thread holds it (GH-118745) #119474)path_t
for C level optimizations #118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (gh-118263: Generalizepath_t
for C level optimizations #118355)Doc/requirements-oldest-sphinx.txt
(RegenDoc/requirements-oldest-sphinx.txt
#119520) ([3.13] RegenDoc/requirements-oldest-sphinx.txt
(GH-119520) #119522)return
and simple assignment statements #99180: MakeStackSummary.should_show_carets
private (gh-99180: MakeStackSummary.should_show_carets
private #119554) ([3.13] gh-99180: MakeStackSummary.should_show_carets
private (GH-119554) #119556)make htmllive
(Docs: Only install sphinx-autobuild formake htmllive
#119607) ([3.13] Docs: Only install sphinx-autobuild formake htmllive
(GH-119607) #119621)test_import
crashes with a--forever
option #119584: Fix test_import Failed Assertion (gh-119584: Fix test_import Failed Assertion #119623) ([3.13] gh-119584: Fix test_import Failed Assertion (gh-119623) #119633)📚 Documentation preview 📚: https://cpython-previews--119642.org.readthedocs.build/