<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-04-22 22:46 GMT+02:00 Victor Stinner <span dir="ltr"><<a href="mailto:victor.stinner@gmail.com" target="_blank">victor.stinner@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Kind (A):<br>
<br>
- "yield-from coroutines" or "coroutines based on yield-from"<br>
- maybe "asyncio coroutines"<br>
- "legacy coroutines"?<br></blockquote><div><br></div><div>"legacy coroutines" name has the advantage to be directly clear it isn't a good idea to write new source code with that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Kind (B):<br>
<br>
- "awaitable coroutines" or "coroutines based on await"<br>
- "asynchronous coroutine" to remember the "async" keyword even if it sounds<br>
wrong to repeat that a coroutine can be interrupted (it's almost the<br>
definition of a coroutine, no?)<br>
- or just "asynchronous function" (coroutine function) & "asynchronous<br>
object" (coroutine object)<br></blockquote><div><br></div><div>Personally, if I've a vote right, "async coroutine" is just enough, even if it's a repetition. Or just "coroutine" ?</div><div>I'm not fan for "new-style coroutines" like name.</div><div>By the way, I hope you don't change a third time how to write async code in Python, because it will be harder to define a new name.</div><div><br></div><div>Not related, but one of my coworkers asked me if with the new syntax it will be possible to write an async decorator for coroutines.</div><div>If I understand correctly new grammar in PEP, it seems to be yes, but could you confirm ?</div></div></div></div>