FAQ

On Wed, 10 Sep 2003 12:40:37 -0700, achris 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?

If this is not implemented now, is there any chance that it's on the list
of things to come?


Al
Well, aside from Stackless's microthreading, you might want to check out
Twisted -- it isn't as magical as yield, but it gets the job done pretty
well.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

People

Translate

site design / logo © 2022 Grokbase