Re: Executing previous stack frame

2009-01-22 Thread sturlamolden
On Jan 22, 8:47 pm, Jeff McNeil wrote: > What are you trying to accomplish? On Jan 22, 8:47 pm, Jeff McNeil wrote: > What are you trying to accomplish? While it's possible to do, I can't > believe it's going to be very safe. I am trying to implement a completely new concurrency abstraction

Re: Executing previous stack frame

2009-01-22 Thread Jeff McNeil
On Jan 22, 9:49 am, sturlamolden wrote: > frame = sys._getframe().f_back is the previous stack frame. Is there > any way to execute (with exec or eval) frame.f_code beginning from > frame.f_lasti or frame.f_lineno? > > I am trying to spawn a thread that is initialized with the code and > state of

Executing previous stack frame

2009-01-22 Thread sturlamolden
frame = sys._getframe().f_back is the previous stack frame. Is there any way to execute (with exec or eval) frame.f_code beginning from frame.f_lasti or frame.f_lineno? I am trying to spawn a thread that is initialized with the code and state of the previous stack frame. S.M. -- http://mail.py