[New-bugs-announce] [issue19255] Don't "wipe" builtins at shutdown
report at bugs.python.org
Sun Oct 13 23:34:15 CEST 2013
New submission from Serhiy Storchaka:
Many __del__ methods expect that builtins are existing at the time of executing. But when the object survives until the builtins module is wiped, __del__ will fail with unexpected AttributeError (see issue19021 for example). We can change __del__'s in the stdlib to not use non-cached builtins, but third party code will be broken.
Perhaps we should special case shutdown of the builtins module. E.g. reset it to initial value (all initial members of the builtins module are immutable and can't create resource loops) instead wiping.
components: Interpreter Core
nosy: pitrou, serhiy.storchaka
stage: needs patch
title: Don't "wipe" builtins at shutdown
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce