[issue39513] NameError: name 'open' is not defined

2020-10-30 Thread STINNER Victor
STINNER Victor added the comment: > Issue26789 is about asyncio, but this issue about logging. I chose to reassign Issue26789 to the logging module. -- ___ Python tracker

[issue39513] NameError: name 'open' is not defined

2020-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue26789 is about asyncio, but this issue about logging. -- ___ Python tracker ___ ___

[issue39513] NameError: name 'open' is not defined

2020-10-30 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-26789. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> asyncio: Please do not log during shutdown ___ Python tracker

[issue39513] NameError: name 'open' is not defined

2020-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this is a multi-level problem, and it perhaps should be solved on different levels separately. As for logging, it can be used at shutdown by user code, it may help to understand the problem with the user code, and it may work most of time. But if

[issue39513] NameError: name 'open' is not defined

2020-02-02 Thread Vinay Sajip
Vinay Sajip added the comment: Well, my comment/request was prompted by whether this issue is a duplicate of bpo-26789, because it's not clear from the OP. If it is, then it can be closed as such. I don't think this is specifically a logging problem, more a case of how things become

[issue39513] NameError: name 'open' is not defined

2020-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Symptoms as when try to log very late at shutdown stage, when the content of the builtin module is restored to its original value which does not include open imported from io. -- nosy: +serhiy.storchaka ___

[issue39513] NameError: name 'open' is not defined

2020-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: Please attach a small script which allows reproduction of this issue - otherwise, it's unlikely we'll be able to make much progress, and I'll probably close it in a week or so if you haven't been able to do this. Thanks! --

[issue39513] NameError: name 'open' is not defined

2020-01-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue26789 -- nosy: +vinay.sajip, xtreak status: pending -> open ___ Python tracker ___

[issue39513] NameError: name 'open' is not defined

2020-01-31 Thread Sandeep
New submission from Sandeep : Hi I wrote a python script which gets file from other server and it works fine till the time I don't introduces logging feature to it. Please advice how to fix below This is the code I am using for logging ' import logging

[issue39513] NameError: name 'open' is not defined

2020-01-31 Thread Sandeep
Change by Sandeep : -- components: Library (Lib) nosy: Sandeep priority: normal severity: normal status: open title: NameError: name 'open' is not defined type: crash versions: Python 3.6 ___ Python tracker