gh-132713: Fix typing.Union[index] race condition (#132802) · python/cpython@dc3e963 · GitHub
Skip to content

Commit dc3e963

Browse files
authored
gh-132713: Fix typing.Union[index] race condition (#132802)
Add union_init_parameters() helper function. Use a critical section to initialize the 'parameters' member.
1 parent 32c4bbe commit dc3e963

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

Objects/unionobject.c

Lines changed: 19 additions & 10 deletions

0 commit comments

Comments
 (0)