diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-22 15:53:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 15:53:30 (GMT) |
commit | 2d03b73cc9c0dada3243eab1373a46dbd98d24a0 (patch) | |
tree | a5540d769b1f1c8e2f05007df3903736b04932a9 /Lib/test/test_sqlite3/test_userfunctions.py | |
parent | f1c6ae3270913e095d24ae13ecf96f5a32c8c503 (diff) | |
download | cpython-2d03b73cc9c0dada3243eab1373a46dbd98d24a0.zip cpython-2d03b73cc9c0dada3243eab1373a46dbd98d24a0.tar.gz cpython-2d03b73cc9c0dada3243eab1373a46dbd98d24a0.tar.bz2 |
bpo-46417: remove_subclass() clears tp_subclasses (GH-30793)
The remove_subclass() function now deletes the dictionary when
removing the last subclass (if the dictionary becomes empty) to save
memory: set PyTypeObject.tp_subclasses to NULL. remove_subclass() is
called when a type is deallocated.
_PyType_GetSubclasses() no longer holds a reference to tp_subclasses:
its loop cannot modify tp_subclasses.
Diffstat (limited to 'Lib/test/test_sqlite3/test_userfunctions.py')
0 files changed, 0 insertions, 0 deletions