[Python-Dev] Flow of control - a new way - Idea

Daniel Stutzbach daniel at stutzbachenterprises.com
Tue Jun 30 15:44:09 CEST 2009


On Tue, Jun 30, 2009 at 1:07 AM, vin vin<4vinoth at gmail.com> wrote:
> at that point if we think to move directly to B (what error handler do
> if that B has the handler defined of the error), changing the frames
> instruction pointer to back to the B's position (in python code without
> raising an exception) is a really useful for this web applications.

If I understand you correctly, the language feature you are looking for is
called a "continuation", which was originally developed in the LISP/Scheme
world (as "call/cc").  I'm not familiar with the details, but I believe you
can get them in Stackless Python.

Hope that helps,

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090630/ce29e9b9/attachment.htm>


More information about the Python-Dev mailing list