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

> The guard doesn't help much. _PyObject_GC_UNTRACK() is called from many 
> object tp_dealloc().
After user call `gc.untrack(obj)`, when the obj is deallocated, assertion error 
happens.

Oh, actually that is a very good point. Although we could argue if the check is 
super useful or not, I agree that as things are currently is not a good idea to 
expose these functions. I will close the issue.

Thanks a lot for pointing that out, Inada-san.

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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

Reply via email to