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.

Author abcd
Recipients abcd
Date 2018-09-25.20:32:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537907526.37.0.545547206417.issue34802@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation states that "This method is different from inspect.iscoroutine() because it returns True for generator-based coroutines decorated with @coroutine."

It seems to be wrong, a method written as follow:

def test(): yield 1

will be evaluated as a coroutine by asyncio.iscoroutine(), even if not decorated. The old doc stated "Return True if obj is a coroutine object, which may be based on a generator or an async def coroutine.", which seems more correct.
History
Date User Action Args
2018-09-25 20:32:06abcdsetrecipients: + abcd
2018-09-25 20:32:06abcdsetmessageid: <1537907526.37.0.545547206417.issue34802@psf.upfronthosting.co.za>
2018-09-25 20:32:06abcdlinkissue34802 messages
2018-09-25 20:32:06abcdcreate