[issue23784] Reloading tokenize module leads to error

David Marks report at bugs.python.org
Thu Mar 26 12:17:57 CET 2015


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.

----------
components: Library (Lib)
messages: 239322
nosy: dmarks
priority: normal
severity: normal
status: open
title: Reloading tokenize module leads to error
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23784>
_______________________________________


More information about the Python-bugs-list mailing list