New submission from David Marks:
On 432 in tokenize.py there is an assignment
_builtin_open = open
Followed in 434 with a redefinition of open
def open(filename):
If the module is reloaded, _builtin_open gets reassigned to the new function
and subsequent calls to _builtin_open fail.
Serhiy Storchaka added the comment:
Fixed in issue23615.
--
nosy: +serhiy.storchaka
resolution: - out of date
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23784
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: out of date - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23784
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: fixed - duplicate
superseder: - Reloading tokenize breaks tokenize.open()
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23784