Proposal for adding Shallow Threads and a Main Loop to Python

Rhamphoryncus rhamph at gmail.com
Thu Mar 17 18:54:48 EST 2005


Gary D. Duzan wrote:
>    A while back I tossed something together to deal with the same
issue
> in terms of "futures" (or "promises".)  Here is roughly what the
above
> code would look like with futures as I implemented them:

<snip>

>    This was all done using plain Python 1.5.2 in 80 lines of code,
> including some blank lines and doc strings. Maybe I'll brush off
> the code a bit and post it one of these days.
>
> 					Gary Duzan
> 					BBN Technologies

Hrm.  Well to be honest the point is the shallow threads, *not* the
main loop and event notifiers.  Otherwise I'd just use blocking calls
in real threads, or maybe just twisted, and not bother creating
anything new, ya know?

--
Adam Olsen, aka Rhamphoryncus




More information about the Python-list mailing list