Kumar Aditya <rahuladitya...@gmail.com> added the comment:

> Aha. Maybe for now, the memory of immortal code objects can be deallocated in 
> pymain_free(). It's the last function called before Python exit the process.

It seems like a viable option for now to only clear them when python is not 
embedded and in pymain_free.

----------

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

Reply via email to