inspect the call stack

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Fri Sep 10 10:56:17 EDT 2010


bussiere bussiere a écrit :
> i v'e got this :
>     i've got toto.py :
> 
>     import titi
>     def niwhom():
>         pass
> 
>     and titi.py :
> 
>     def nipang():
>          pass
> 
>     how can i know in titi.py that's it's toto.py that is calling titi.py
>     and the path of toto ?
> 
> how can i inspect the call stack or an other way ?

http://www.google.fr/search?q=python+inspect+the+call+stack

First answer should point you to the relevant part of the FineManual(tm):
http://docs.python.org/library/inspect.html

<ot>
And while we're at it, what about not opening a new thread for a 
question already partially answered ?
</ot>




More information about the Python-list mailing list