On Sat, Oct 29, 2011 at 11:10 AM, Steven D'Aprano
I'm not hostile to the idea. But the PEP needs to reference concrete examples that people can run to see that there is a problem to be solved. Otherwise, it just seems that you're proposing adding more complication to the Python, at least one new keyword and one more builtin, for what gain?
Indeed, this is why I think the PEP needs to spend more time talking about Twisted and gevent. They both attack the problem of coroutines in Python, one by writing within the limitations of what already exists (which is why it's really a programming paradigm unto itself), the other by lifting some core components out of Stackless (i.e. the greenlets module) in order to get true coroutines. The PEP is basically about making the Twisted-style approach less problematic. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia