How can I get the line number ?

kk maymunbeyin at gmail.com
Fri Jul 24 14:51:54 EDT 2009


Hello

I am writing some Python code that runs in another application(has
wrapper functions). Due to lack of debugging I am printing out alot of
outputs and manual messages. I want to be able to create a function
that would let me print the current line number that is called from.
This is not for debugging exceptions it is rather to simplify my debug
messages, at least I can trace my debug messages.

thanks





More information about the Python-list mailing list