On 6/10/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:

En Sat, 09 Jun 2007 21:40:40 -0300, Fabio Zadrozny <[EMAIL PROTECTED]>
escribió:

> Is there some way to get all the frames for any given thread? -- in a
way
> 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
2.5 ;-)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to