[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Roger, problem fixed. -- dependencies: +idle "Run Module" (F5) does not set __file__ variable resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-30 Thread Roger Serwy
Roger Serwy added the comment: See issue8515. The patch was not applied to 2.7. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks, not specifically Windows then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: >From Idle editor window (F5): >>> Traceback (most recent call last): File "/home/ci/Prog/mypy/tem2.py", line 1, in print(__file__) NameError: name '__file__' is not defined >>> -- ___ Python tracker

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-23 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: On Debian: * Command line 2.7.3 ~/Prog/mypy$ python2.7 tem2.py tem2.py ~/Prog/mypy$ python2.7 -m tem2 /home/ci/Prog/mypy/tem2.py * IDLE 2.7.3 >>> print(__file__) Traceback (most recent call last): File "", line 1, in print(__file__) NameErro

[issue18288] Idle 2.7: Run Module does not set __file__

2013-06-23 Thread Terry J. Reedy
New submission from Terry J. Reedy: This is a 2.7 only bug. F:\Python\mypy\tem2.py print (__file__) __file__ should be set to relative or absolute path. >From command line: F:\Python\mypy> c:/programs/python27/python.exe tem2.py tem2.py F:\Python\mypy> c:/programs/python27/python.exe -m