[issue11502] assignment of winreg module to another name causes NameError

2011-03-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: Good call. Closing. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___

[issue11502] assignment of winreg module to another name causes NameError

2011-03-14 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It's a duplicate of issue #11276. -- nosy: +Arfrever ___ Python tracker ___ __

[issue11502] assignment of winreg module to another name causes NameError

2011-03-14 Thread Jason R. Coombs
New submission from Jason R. Coombs : 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 t