[issue23784] Reloading tokenize module leads to error

2015-03-26 Thread David Marks
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.

[issue23784] Reloading tokenize module leads to error

2015-03-26 Thread Serhiy Storchaka
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

[issue23784] Reloading tokenize module leads to error

2015-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: out of date - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23784 ___ ___

[issue23784] Reloading tokenize module leads to error

2015-03-26 Thread R. David Murray
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