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 "<pyshell#0>", line 1, in <module>
    print(__file__)
NameError: name '__file__' is not defined
>>>
>>> import tem2
tem2.pyc
>>>

----------
nosy: +francismb

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18288>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to