Issue 11502: assignment of winreg module to another name causes NameError
Created on 2011-03-14 16:31 by jaraco, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg130849 - (view) | Author: Jason R. Coombs (jaraco) * ![]() |
Date: 2011-03-14 16:31 | |
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?
|
|||
| msg130910 - (view) | Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * ![]() |
Date: 2011-03-14 21:38 | |
It's a duplicate of issue #11276. |
|||
| msg130913 - (view) | Author: Jason R. Coombs (jaraco) * ![]() |
Date: 2011-03-14 21:51 | |
Good call. Closing. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:14 | admin | set | github: 55711 |
| 2011-03-14 21:51:34 | jaraco | set | status: open -> closed messages:
+ msg130913 |
| 2011-03-14 21:38:13 | Arfrever | set | nosy:
+ Arfrever messages: + msg130910 |
| 2011-03-14 16:31:31 | jaraco | create | |

