[New-bugs-announce] [issue19255] Don't "wipe" builtins at shutdown

Serhiy Storchaka 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
messages: 199810
nosy: pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Don't "wipe" builtins at shutdown
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19255>
_______________________________________


More information about the New-bugs-announce mailing list