Opposite of yield?

Dave Benjamin dave at 3dex.com
Wed Sep 10 16:19:35 EDT 2003


"Bob Gailer" <bgailer at alum.rpi.edu> wrote in message
news:mailman.1063223955.7295.python-list at python.org...
> 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?
>
> ...
>
> Perhaps a new Python statement "suck"?

Oh come on, now, just because Java does it...






More information about the Python-list mailing list