Nick Coghlan <ncogh...@gmail.com> added the comment:

Rather than tracking this per object, you could potentially track it per arena 
at the memory allocator level instead. Then if you really need the info (e.g. 
when running the debug allocator), you can check it in a reliable way, but in 
the normal case, you assume the associations are being managed correctly and 
avoid any significant bookkeeping overhead.

----------

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

Reply via email to