Message 130849 - Python tracker

Message130849

Author jaraco
Recipients jaraco
Date 2011-03-14.16:31:31
SpamBayes Score 0.010714402
Marked as misclassified No
Message-id <1300120292.26.0.949538054065.issue11502@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-03-14 16:31:32jaracosetrecipients: + jaraco
2011-03-14 16:31:32jaracosetmessageid: <1300120292.26.0.949538054065.issue11502@psf.upfronthosting.co.za>
2011-03-14 16:31:31jaracolinkissue11502 messages
2011-03-14 16:31:31jaracocreate