C macros in Python.
Steve Juranich
sjuranic at condor.ee.washington.edu
Fri Oct 13 13:54:07 EDT 2000
I was just wondering if there was anything available in Python like the
__FILE__ and __LINE__ macros in C. I know about the __name__ attribute, but
I'm not sure that does exactly what I'm looking to do.
What I'd like to do is write some code that will tell me _exactly_ on which
file and while line things went wrong.
Thanks for the help.
----------------------------------------------------------------------
Stephen W. Juranich sjuranic at ee.washington.edu
Electrical Engineering http://students.washington.edu/sjuranic
University of Washington http://rcs.ee.washington.edu/ssli
More information about the Python-list
mailing list