Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 22, 2022

  • _PyType_GetSubclasses() no longer holds a reference to
    tp_subclasses: its loop cannot modify tp_subclasses.
  • remove_subclass() now sets tp_subclasses to NULL if the dictionary
    becomes empty.

https://bugs.python.org/issue46417

* _PyType_GetSubclasses() no longer holds a reference to
  tp_subclasses: its loop cannot modify tp_subclasses.
* remove_subclass() now sets tp_subclasses to NULL if the dictionary
  becomes empty.
@vstinner
Copy link
Member Author

I wrote a real fix instead: #30793

@vstinner vstinner closed this Jan 22, 2022
@vstinner vstinner deleted the debug_subclasses branch January 22, 2022 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants