[issue42140] asyncio.wait function creates futures set two times

2020-10-26 Thread Diogo Dutra
Diogo Dutra added the comment: > I wouldn't be surprised if there are other libraries or apps out there for which removing iterator support was an accidentally-breaking change and it may be strange if this is only is broken in 3.9.x, but working both before and after. Justin, w

[issue42140] asyncio.wait function creates futures set two times

2020-10-26 Thread Diogo Dutra
Diogo Dutra added the comment: > Are you suggesting this is a bug, or is it just a suggested code cleanup? It is a suggested code cleanup. My point is that the code creates two sets based on the Sequence `fs`. I think it is better if the code creates the set just one time, instead of

[issue42140] asyncio.wait function creates futures set two times

2020-10-24 Thread Diogo Dutra
New submission from Diogo Dutra : The python3.9 code creates the futures set two times. We can create this set before, avoiding the second creation. This python3.9 behaviour breaks the aiokafka library, because it gives an iterator to that function, so the second iteration become empty