[issue33597] Compact PyGC_Head

Serhiy Storchaka report at bugs.python.org
Fri Jun 1 03:03:26 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There are also problems with func_name and func_qualname. func_name can be an instance of the str subtype and has __dict__. func_qualname seems can be of any type.

Even if they would be exact strings, excluding them from tp_traverse will break functions that calculate the total size of the memory consumed by the specified set of objects by calling sys.getsizeof() recursively.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33597>
_______________________________________


More information about the Python-bugs-list mailing list