[issue1980] pdb losing __file__

2008-01-31 Thread Christian Heimes
Christian Heimes added the comment: The issue is already fixed in the 2.5 and 2.6. 2.5.2 is going to be released in a couple of weeks. $ python2.5 test.py > /home/heimes/dev/python/trunk/test.py(4)() -> print __file__ (Pdb) n test.py --Return-- > /home/heimes/dev/python/trunk/test.py(4)()->None

[issue1980] pdb losing __file__

2008-01-31 Thread Erno Kuusela
New submission from Erno Kuusela: under pdb, __file__ is not defined when executing a source code file directly. for example, if myprogram.py contains "print __file__", a NameError will be raised when run with python -m pdb myprogram.py. -- components: Library (Lib) messages: 61896 nosy