Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

GC support can not be removed, because these objects are created also as long 
living objects using the standard way. And in this case they are tracked (in 
PyType_GenericAlloc()) and tp_traverse is called. They are not tracked only 
when created by an internal API _Pickler_New() and _Unpickler_New().

The current code is correct and I do not see reasons to change it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue18372>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to