On Wed, 2009-09-23 at 22:07 +0000, exar...@twistedmatrix.com wrote: > Sure, no value judgement intended, except on the practice of taking > words with well established meanings and re-using them for something > else ;)
I think it's the behaviour that's important, and not the specific syntax needed to implement that behaviour. In other words, I disagree (if this is what you're suggesting) that sticking "yield" in front of certain expressions makes it any less a coroutine. Now, requiring explicit yields does mean that the coroutine has specific, well-defined points of reentry. But I don't believe it's a necessary condition that coroutines allow arbitrary (in the non-deterministic sense) reentry points, only multiple. Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list