[issue11502] assignment of winreg module to another name causes NameError
Jason R. Coombs
report at bugs.python.org
Mon Mar 14 17:31:32 CET 2011
New submission from Jason R. Coombs <jaraco at jaraco.com>:
Consider the Python file:
import _winreg
_winreg.foo
x = _winreg
Currently, 2to3 converts this to:
import winreg
winreg.foo
x = _winreg
The result will elicit a NameError on line 3 (if line 2 is valid). Is it possible to support this case?
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 130849
nosy: jaraco
priority: normal
severity: normal
status: open
title: assignment of winreg module to another name causes NameError
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11502>
_______________________________________
More information about the Python-bugs-list
mailing list