who called a function?
kosh at aesaeion.com
kosh at aesaeion.com
Thu Nov 15 02:57:28 EST 2001
On 14 Nov 2001, Paul Rubin wrote:
> <kosh at aesaeion.com> writes:
> > How can I find out what object called a function and essentially step back
> > through that? At most I need to step back about 4 to 5 levels but it would
> > be very useful for me to find a particular object back up the list and
> > change behavior based on that. Mostly I just wants the self var as I step
> > back until I find the one I want.
>
> Raise and catch an exception and examine the stack trace object.
> --
How do I step back through the trace stack object? Basically a few points
would be nice or better yet a web page that shows some examples.
Designing the webpages of tomorrow http://webme-eng.com
Designing the MMORPGS of tomorrow http://worldforge.org
More information about the Python-list
mailing list