]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-132713: Fix typing.Union[index] race condition (GH-132802) (#132839)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 23 Apr 2025 14:12:03 +0000 (16:12 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 14:12:03 +0000 (14:12 +0000)
commit341b86e095e59f849c80312ccdb5b70e00fa5216
treeeb605db97ec10b877125d6ff97cde34dfe699bc5
parent3de0f55f3410ae835923d10ae098558900a9a121
[3.13] gh-132713: Fix typing.Union[index] race condition (GH-132802) (#132839)

gh-132713: Fix typing.Union[index] race condition (GH-132802)

Add union_init_parameters() helper function. Use a critical section
to initialize the 'parameters' member.
(cherry picked from commit dc3e9638c22fc1fa807a88c32316ac2558a4b879)

Co-authored-by: Victor Stinner <vstinner@python.org>
Objects/unionobject.c