On May 28, 2009, at 5:10 PM, alan yung wrote:

Hi,
 
Thanks and sorry about the link.
 
The right link is http://paste.pocoo.org/show/119296/ this.

What I'm trying to do there is this:
 
In the freeze() function, I want to stop executing the current python function, and copy the (python) frame stack, and unroll the python frame stack *and* interpreter level stack frame.
 
In the resume() function, I want to continue executing the python function copied in freeze() function and reconstruct interpreter level stack using resume_state_create() and resume_state_invoke() function.

On Thu, May 28, 2009 at 12:57 PM, Armin Rigo <arigo@tunes.org> wrote:
Hi,

Sorry, your e-mail is hard to understand, probably because the link
above seems to be wrong.  It just points to the list of bugs for the
Supybot project.  Can you fix it and also explain a bit more what you
are trying to achieve and why?  Thanks!

I think you forgot to answer why are you doing it?

I don't know much about stackless but this seems very similar to what stackless does on pypy (which has stackless at the rpython/interpreter level).

--
Leonardo Santagada
santagada at gmail.com