[Python-ideas] Coroutines and PEP 380

Simon Sapin simon.sapin at kozea.fr
Thu Jan 26 09:19:29 CET 2012


Le 26/01/2012 03:08, Matt Joiner a écrit :
> Implicit coroutines can arbitrary switch without changes in syntax,
> calling convention, or traversing back up the stack.

Do you mean that greenlets? some_greenlet.switch() looks like a method 
call and does not required a special syntax like "yield from" so it can 
be hidden in some_file.read() like gevent does.

Regards,

-- 
Simon Sapin




More information about the Python-ideas mailing list