]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-128714: Fix function object races in `__annotate__`, `__annotations__`...
authorXuanteng Huang <44627253+xuantengh@users.noreply.github.com>
Mon, 24 Feb 2025 02:49:55 +0000 (10:49 +0800)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 02:49:55 +0000 (21:49 -0500)
commitbb6f3c37696946ea7a41dd5983118448bc9183a3
treee2684b0e81fd3df2fb804252382bedd9b2762a0e
parent6abec03aeff0a52d12780000923af0cee5ef1b6c
[3.13] gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in  free-threading build (GH-129016) (#129729)

* gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in  free-threading build (#129016)

(cherry picked from commit 55f17b77c305be877ac856d6426b13591cbc7fc8)

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Lib/test/test_free_threading/test_func_annotations.py [new file with mode: 0644]
Misc/NEWS.d/next/Core and Builtins/2025-01-19-09-07-44.gh-issue-128714.m1fyCB.rst [new file with mode: 0644]
Objects/clinic/funcobject.c.h
Objects/funcobject.c