[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

Gerald Dalley report at bugs.python.org
Fri Dec 4 15:09:11 EST 2020


Gerald Dalley <gerald.dalley at gmail.com> added the comment:

I and a few others have run into issues with the Enum constructors producing spurious reference cycles. This can cause memory explosions if large objects like numpy arrays are held in any of the relevant stack frames. Based on https://bugs.python.org/issue36820, it looks like the maintainers of CPython are open to fixing similar issues, and PRs look like the way to make progress.

----------
nosy: +gerald.dalley2
type:  -> enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42248>
_______________________________________


More information about the Python-bugs-list mailing list