Determining caller's file and line number

David Abrahams dave at
Wed Jun 23 23:30:37 CEST 2004

Is there any way to determine the file and line number (if any) of a
method's invocation from within its body?

Many Thanks in advance,

David Abrahams
Boost Consulting

More information about the Python-list mailing list