← 输入框|bugs.python.org|刷新

➜

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.

作者 abcd
收信人 abcd
日期 2018-09-25.20:32:06
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1537907526.37.0.545547206417.issue34802@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2018-09-25 20:32:06abcd修改recipients: + abcd
2018-09-25 20:32:06abcd修改messageid: <1537907526.37.0.545547206417.issue34802@psf.upfronthosting.co.za>
2018-09-25 20:32:06abcd链接issue34802 messages
2018-09-25 20:32:06abcd创建