How to get existing frames in non-current thread?
fabiofz at gmail.com
Sun Jun 10 14:17:21 CEST 2007
On 6/10/07, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
> En Sat, 09 Jun 2007 21:40:40 -0300, Fabio Zadrozny <fabiofz at gmail.com>
> > Is there some way to get all the frames for any given thread? -- in a
> > that does not require a compiled extension.
> For the current (calling) thread, you can use sys._getframe()
> For other threads, you can use sys._current_frames()
> Frames have a f_back attribute pointing to the previous one, that you can
> use to navigate them.
Thanks a lot... I guess I'll have to find another way for versions before
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list