消息 [326404]
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:06 | abcd | 修改 | recipients:
+ abcd |
| 2018-09-25 20:32:06 | abcd | 修改 | messageid: <1537907526.37.0.545547206417.issue34802@psf.upfronthosting.co.za> |
| 2018-09-25 20:32:06 | abcd | 链接 | issue34802 messages |
| 2018-09-25 20:32:06 | abcd | 创建 | |
|