[issue40405] asyncio.as_completed documentation misleading

Guido van Rossum report at bugs.python.org
Mon Apr 27 11:28:06 EDT 2020


Guido van Rossum <guido at python.org> added the comment:

I declare this not a bug.

The docs do not promise that the Futures being returned are the *same* Futures that were passed in. They are not. They are (or at least may be) new Futures that represent the same event. Since Futures, when used as dict keys, use identity as equality, those new Futures will not be present as keys in the mapping of Futures passed in by the OP.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40405>
_______________________________________


More information about the Python-bugs-list mailing list