exceptions, internals (introspection?)

Paul Rubin http
Thu Nov 10 15:51:12 EST 2005


"ej" <ej at wellkeeper com> writes:
>     I have often wondered how to get at other internals, such as the name of
> the current function, file, line number I am in?  The arguments to the
> current function, etc. 

It's messy.  Look at sys.exc_info() and go from there.



More information about the Python-list mailing list