printing line numbers for debugging purpose

Philippe C. Martin philippecmartin at
Sat Jan 8 10:59:23 EST 2005


All of the methods from my program return None on error (i.e; I do not
want to assert and have the program exit).

Is it possible to print the current source file name/line number ?

ex: in C/C++ I would use the macros __FILE__ and __LINE__.



Philippe C. Martin
SnakeCard LLC

More information about the Python-list mailing list