`foo.py`: ``` python print(__file__) ``` ``` $ bpython foo.py Traceback (most recent call last): File "foo.py", line 1, in <module> print(__file__) NameError: name '__file__' is not defined ``` --- - Bitbucket: https://bitbucket.org/bobf/bpython/issue/284 - Originally Reported By: [Steven Myint](http://bitbucket.org/myint) - Originally Created At: 2014-05-11T19:50:46.295