Opposite of yield?
Bob Gailer
bgailer at alum.rpi.edu
Wed Sep 10 15:56:46 EDT 2003
At 01:40 PM 9/10/2003, achrist at easystreet.com wrote:
>The yield statement looks to be a big step toward some kind of
>lightweight concurrency-oriented programming in python. Is there
>any similarly nice way to do the opposite of yield, just sit around
>(perhaps in the middle of a loop) and wait until some other routine
>(unknown to the waiting module) hurls a value in?
Sounds like a task for a thread that sleeps a while then checks for the data.
Also reminiscent (a long time ago) someone proposed a COME FROM statement
for FORTRAN to be the inverse of GO TO.
Perhaps a new Python statement "suck"?
Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003
More information about the Python-list
mailing list