[issue16781] execfile/exec messes up with imports in executed file

2012-12-25 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file28436/b2.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16781] execfile/exec messes up with imports in executed file

2012-12-25 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file28435/a.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16781] execfile/exec messes up with imports in executed file

2012-12-25 Thread anatoly techtonik
New submission from anatoly techtonik: When a Python file is exec()uted, it magically fails to find names in imported modules. The most magical thing in the examples below (b3.py in attach for Python 3) is that first reference to wintypes.LONG in print statement is actually successfull. --- a