Skip to content

bpo-46417: Debug tp_subclasses crash - #30791

Closed
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:debug_subclasses
Closed

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:debug_subclasses

Conversation

@vstinner

@vstinner vstinner commented Jan 22, 2022 •

Copy link
Copy Markdown
Member
  • _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
Copy Markdown
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

3 participants