bpo-36921: Deprecate @coroutine for sake of async def by asvetlov · Pull Request #13346 · python/cpython
Also side-question (and maybe this is better suited for bpo , should asyncio.iscoroutine and asyncio.iscoroutinefunction be deprecated at the same time ?
Because presumably once @coroutine is removed, the two other have quasy no chance of encountering a coroutine that would not be properly detected by inspect.iscoroutine.
I'm thinking they are still useful from inter-library compatibility and across python version; so maybe deprecate as well but remove even later ?