{{ message }}
Commit acda9f3
Fix a race condition on setting a type __bases__ attribute: the
internal function add_subclass() now gets the
PyTypeObject.tp_subclasses member after calling PyWeakref_NewRef()
which can trigger a garbage collection which can indirectly modify
PyTypeObject.tp_subclasses.
(cherry picked from commit f1c6ae3)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 6111d5d commit acda9f3
2 files changed
Lines changed: 21 additions & 11 deletions
File tree
- Misc/NEWS.d/next/Core and Builtins
- Objects
Lines changed: 5 additions & 0 deletions

0 commit comments