Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

If I understand what you say correctly, it does not seem correct, the object 
will only be tracked by the collector when you call PyObject_GC_Track. indeed, 
the documentation warns about this:

void PyObject_GC_Track(PyObject *op)ΒΆ
Adds the object op to the set of container objects tracked by the collector. 
The collector can run at unexpected times so objects must be valid while being 
tracked. This should be called once all the fields followed by the tp_traverse 
handler become valid, usually near the end of the constructor.

----------

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

Reply via email to