Yury Selivanov added the comment:

> It sounds particularly confusing that an "[XXX] generator" is the function
in one case and the object in the other case.

Right, this is the biggest argument against having slightly different 
terminology between async generators and sync generators.

Maybe we should update docs for synchronous generators and replace "generator" 
with "generator function" and "generator iterable" with "generator"?

Most of the existing documentation refers to generator objects when the term 
"generator" is used anyways.

> There's of course also Nathaniel Smith's opinion that we should switch away
from the term coroutine and call those "async def". Is that relevant?

IIRC he's advocating to refer to "coroutine functions" as "async functions" and 
to "coroutines" as "async something". I personally don't buy his arguments and 
think that the current terminology is good and people already seem to 
understand/like it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28091>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to