[issue26528] NameError for built in function open when re-raising stored exception from yielded function

STINNER Victor report at bugs.python.org
Fri Oct 30 20:41:29 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

Davide Rizzo:
> I've just stumbled on the same thing happening on some code that attempts to use logging on __del__.
> (...)
> File ".../logging/__init__.py", line 1121, in _open
> NameError: name 'open' is not defined

This is bpo-26789 which is unrelated to this issue.

----------

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


More information about the Python-bugs-list mailing list