diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-11-10 23:10:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 23:10:57 (GMT) |
commit | 33922cb0aa0c81ebff91ab4e938a58dfec2acf19 (patch) | |
tree | 94e4994c7880c4bd5e069dd023286d8b394dcc70 /Python/ceval.c | |
parent | f8bea0a44d718296a249bdb766b8dbc92f38e8df (diff) | |
download | cpython-33922cb0aa0c81ebff91ab4e938a58dfec2acf19.zip cpython-33922cb0aa0c81ebff91ab4e938a58dfec2acf19.tar.gz cpython-33922cb0aa0c81ebff91ab4e938a58dfec2acf19.tar.bz2 |
bpo-42140: Improve asyncio.wait function (GH-22938)
GH- Improve asyncio.wait function
The original code creates the futures set two times.
We can create this set before, avoiding the second creation.
This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty.
Automerge-Triggered-By: GH:1st1
(cherry picked from commit 7e5ef0a5713f968f6e942566c78bf57ffbef01de)
Co-authored-by: Diogo Dutra <diogodutradamata@gmail.com>
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions