[New-bugs-announce] [issue1980] pdb losing __file__

Erno Kuusela report at bugs.python.org
Thu Jan 31 12:19:38 CET 2008

New submission from Erno Kuusela:

under pdb, __file__ is not defined when executing a source code file

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: erno
severity: normal
status: open
title: pdb losing __file__
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list