[issue29471] AST: add an attribute to FunctionDef to distinguish functions from generators and coroutines

Vedran Čačić report at bugs.python.org
Tue Feb 7 04:53:51 EST 2017


Vedran Čačić added the comment:

I remember the message from Guido, long time ago when the syntax of generators was discussed. He said he has a hunch that new keyword will not be necessary, that the presence of yield will be enough. It'd be interesting to see if he has changed his mind, or he has some other excuse about async being fundamentally different. :-)

----------
nosy: +veky

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29471>
_______________________________________


More information about the Python-bugs-list mailing list