◐ Shell
clean mode source ↗

Message 398794 - Python tracker

Message398794

Author dreamsorcerer
Recipients asvetlov, dreamsorcerer, yselivanov
Date 2021-08-02.18:29:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627928997.24.0.837145443801.issue44815@roundup.psfhosted.org>
In-reply-to
Content
When calling asyncio.gather() a DeprecationWarning is only emitted if no tasks are passed (which is probably the exceptional case, rather than the standard one).

This has resulted in us missing this deprecated argument in aiohttp until we received a bug report from a user trying it out against the 3.10 beta.

For some reason the warning only appears under a `if not coros_or_futures:` block. I think it should be run regardless:
https://github.com/python/cpython/blob/3.9/Lib/asyncio/tasks.py#L757
History
Date User Action Args
2021-08-02 18:29:57dreamsorcerersetrecipients: + dreamsorcerer, asvetlov, yselivanov
2021-08-02 18:29:57dreamsorcerersetmessageid: <1627928997.24.0.837145443801.issue44815@roundup.psfhosted.org>
2021-08-02 18:29:57dreamsorcererlinkissue44815 messages
2021-08-02 18:29:57dreamsorcerercreate