[Python-Dev] Coroutines

Tim Peters tim_one at email.msn.com
Sat May 22 21:35:58 CEST 1999


>> http://www.python.org/tim_one/000169.html

[Christian]
> What an interesting thread! Unfortunately, all the examples are messed
> up since some HTML formatter didn't take care of the python code,
> rendering it unreadable. Is there a different version available?
>
> Also, I'd like to read the rest of the threads in
> http://www.python.org/tim_one/ but it seems that only your messages
> are archived?

Yes, that link is the old Pythonic Award Shrine erected in my memory -- it's
all me, all the time, no mercy, no escape <wink>.

It predates the DejaNews archive, but the context can still be found in

http://www.python.org/search/hypermail/python-1994q2/index.html

There's a lot in that quarter about continuations & coroutines, most from
Steven Majewski, who took a serious shot at implementing all this.

Don't have the code in a more usable form; when my then-employer died, most
of my files went with it.

You can save the file as text, though!  The structure of the code is intact,
it's simply that your browswer squashes out the spaces when displaying it.
Nuke the <P> at the start of each code line and what remains is very close
to what was originally posted.

> Anyway, the citations in http://www.python.org/tim_one/000146.html
> show me that you have been through all of this five years
> ago, with a five years younger Guido which sounds a bit
> different than today.
> I had understood him better if I had known that this
> is a re-iteration of a somehow dropped or entombed idea.

You *used* to know that <wink>!  Thought you even got StevenM's old code
from him a year or so ago.  He went most of the way, up until hitting the
C<->Python stack intertwingling barrier, and then dropped it.  Plus Guido
wrote generator.py to shut me up, which works, but is about 3x clumsier to
use and runs about 50x slower than a generator should <wink>.

> ...
> Stackless Python is meanwhile nearly alive, with recursion
> avoided in ceval. Of course, some modules are left which
> still need work, but enough for a prototype. Frames contain
> now all necessry state and are now prepared for execution
> and thrown back to the evaluator (elevator?).
> ...

Excellent!  Running off to a movie & dinner now, but will give a more
careful reading tonight.

co-dependent-ly y'rs  - tim






More information about the Python-Dev mailing list