inspect the call stack
bruno.42.desthuilliers at websiteburo.invalid
Fri Sep 10 16:56:17 CEST 2010
bussiere bussiere a écrit :
> i v'e got this :
> i've got toto.py :
> import titi
> def niwhom():
> and titi.py :
> def nipang():
> 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 ?
First answer should point you to the relevant part of the FineManual(tm):
And while we're at it, what about not opening a new thread for a
question already partially answered ?
More information about the Python-list