]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132713: Fix typing.Union[index] race condition (#132802)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Apr 2025 13:45:42 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 13:45:42 +0000 (15:45 +0200)
commitdc3e9638c22fc1fa807a88c32316ac2558a4b879
tree12ba7e14da8b9f6de9d1e4ab6cd517f6c6e09302
parent32c4bbe834aeb077dd12414b65b123cf7fb5b117
gh-132713: Fix typing.Union[index] race condition (#132802)

Add union_init_parameters() helper function. Use a critical section
to initialize the 'parameters' member.
Objects/unionobject.c