Steve Dower <steve.do...@python.org> added the comment:

There hasn't been much said about which kind of objects would be immortal. 
Could this be a creation-time option? Or a type object (similar to a no-op 
tp_dealloc)?

If it's something that is known when the object is created, then some of the 
"infection" concern can be reduced - but if you wanted to arbitrarily make 
arbitrary objects immortal dynamically then it's a different matter.

Another benefit of knowing at creation time is that immortal objects could be 
allocated to a different page (or potentially even to read-only shared memory, 
if that was appropriate).

----------

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

Reply via email to