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>
--
http://mail.python.org/mailman/listinfo/python-list