How to get the package, file, and line of a method/function invocant?

Alex Martelli aleax at mac.com
Tue Sep 12 01:31:48 EDT 2006


metaperl <metaperl at gmail.com> wrote:

> I am looking for something like the caller() routine in Perl:
>    http://perldoc.perl.org/functions/caller.html

Look at the inspect module in Python's standard library.


Alex



More information about the Python-list mailing list