Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented May 28, 2024


📚 Documentation preview 📚: https://cpython-previews--119642.org.readthedocs.build/

Yhg1s and others added 30 commits May 8, 2024 16:53
(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>
…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>
…H-118831) (cherry picked from commit 82acc5f) Co-authored-by: Steve Dower <steve.dower@python.org>
… (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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment