[issue19021] AttributeError in Popen.__del__

Oleg Oshmyan report at bugs.python.org
Sun Sep 22 03:34:39 CEST 2013


Oleg Oshmyan added the comment:

> Anothe possible solution is get rid from getattr and catch
> AttributeError instead.

Surely this would suffer from the same issue?

Why are the builtins getting deleted anyway? In fact, why is getattr getting deleted from the builtins module? The __builtins__ global is specifically not deleted when deleting modules to let destructors use builtins, and indeed the error message says "is not callable", suggesting the builtins module is still there but getattr is not. Is this perhaps some sort of IDLE bug?

----------
nosy: +chortos

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


More information about the Python-bugs-list mailing list