{{ message }}
Commit f1c6ae3
authored
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.
1 parent c8a5366 commit f1c6ae3
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