Message 244399 - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Content
Please test the attached patch.

> BTW, it's not only for compiled generators but also for normal Python functions that construct Python generators internally and return them

You're right, that's why I used "primarily" word in that comment ;) 

types.coroutine() is only used by asyncio.coroutine() so far, and returning generator objects from "factory" functions isn't a very common pattern in asyncio.