[docs] [issue21596] asyncio.wait fails when futures list is empty
report at bugs.python.org
Fri Jun 6 14:28:02 CEST 2014
STINNER Victor added the comment:
> Probably this was the intended behavior as I see there's a test case for that. If such, then I would propose to document that behavior.
The code has an explicit check:
if not fs:
raise ValueError('Set of coroutines/Futures is empty.')
And yes, the behaviour is tested by test_asyncio.
Attached patch changes mention this behaviour in the documentation. Does it look correct?
Added file: http://bugs.python.org/file35496/wait_doc.patch
Python tracker <report at bugs.python.org>
More information about the docs