get line number and filename in a source file
Rami Chowdhury
rami.chowdhury at gmail.com
Wed Nov 25 01:04:24 EST 2009
On Nov 24, 2009, at 21:47 , Peng Yu wrote:
> __LINE__ __FILE__ in C++ can give the current line number and
> filename. Is there a similar thing in python that can give me the
> current line number and filename?
> Is there a similar thing to __PRETTY_FUNCTION__ (also from C++)?
What do you want to use them for?
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list