[issue26789] logging: Trying to log during Python finalization with NameError: name 'open' is not defined

Vedran Čačić report at bugs.python.org
Fri Oct 30 10:26:10 EDT 2020


Vedran Čačić <vedgar at gmail.com> added the comment:

> In the OP, the error is caused by `open` being unavailable, which is a builtin. According to what Serhiy says, this error would be after step 6

I think you read the post above incorrectly. The phase 3 is the one where open is removed, since it's not a "native" builtin, but imported from io.

----------
nosy: +veky

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


More information about the Python-bugs-list mailing list