Opposite of yield?

Paul Rubin http
Wed Sep 10 21:54:47 CEST 2003

achrist at easystreet.com writes:
> 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?
> If this is not implemented now, is there any chance that it's on the
> list of things to come?

Not much chance.  Even Stackless can't do that any more, if I
understand correctly.

More information about the Python-list mailing list