← 输入框|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.

作者 davide.rizzo
收信人 davide.rizzo, gvanrossum, yselivanov
日期 2017-10-27.09:52:53
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1509097973.39.0.213398074469.issue31861@psf.upfronthosting.co.za>
In-reply-to
内容
I attempted to make a Python implementation (attached) to use in my code. There are a few questions in the comments.

One of the complications is the async equivalent of next with two arguments like next(iterator, default). It cannot return the result of __anext__() because it needs to catch StopAsyncIteration. So it should return an awaitable wrapper instead (in my Python code this is rendered as a coroutine). A secondary question is whether the default value should be returned as it is passed, or awaited on.
历史
日期 用户 动作 参数
2017-10-27 09:52:53davide.rizzo修改recipients: + davide.rizzo, gvanrossum, yselivanov
2017-10-27 09:52:53davide.rizzo修改messageid: <1509097973.39.0.213398074469.issue31861@psf.upfronthosting.co.za>
2017-10-27 09:52:53davide.rizzo链接issue31861 messages
2017-10-27 09:52:53davide.rizzo创建