New submission from Jason R. Coombs <[email protected]>:

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 <[email protected]>
<http://bugs.python.org/issue11502>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to