Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

Unfortunately, the check is O(n), so it can get a little expensive.  I
suppose that's no worse than traversing the tuple to look for a cycle,
though.  Perhaps it could be done at the same time?

Can _PyObject_GC_UNTRACK() be safely called from tp_traverse?

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

Reply via email to