You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncio.gather'sloop keyword argument has been deprecated since 3.8+ and is scheduled to remove from 3.10+ (3.10 due to release in less than a month, final release candidate already published). Using Ctrl + C to quit server provides the error traceback which indicates a problem with _cancel_tasks method in web module of the aiohttp package.
To Reproduce
Start a new server with the following code snippet.
The 3.7.x stream of aiohttp will not get any updates so don't expect it to ever get support for . Besides, it still supports Python 3.6 which, I think, still requires an explicit loop arg. The master branch (aiohttp 4.0+) has already dropped py36 so it should be fine to start a crusade of dropping the use of loop across the code base.
Also, Python 3.6 goes EOL in 3 months so I suppose it'd be reasonable to drop py36 for the next aiohttp 3.8.x stream and get such the patch backported from master then.
No, it doesn't, we've already removed it in 3.8 in response to the last person who said it was broken in 3.10. The only reason it's not updated in 3.7 is because python was not emitting DeprecationWarnings in some cases (for this one, it only emitted a warning when asyncio.gather() was called with no tasks. Probably not the typical usecase. :P).
Describe the bug
asyncio.gather's
loop
keyword argument has been deprecated since 3.8+ and is scheduled to remove from 3.10+ (3.10 due to release in less than a month, final release candidate already published). Using Ctrl + C to quit server provides the error traceback which indicates a problem with_cancel_tasks
method in web module of the aiohttp package.To Reproduce
Ctrl + C
to shut down server.Expected behavior
For running server to exit cleanly.
Logs/tracebacks
Python Version
Python 3.10.0rc2
aiohttp Version
multidict Version
yarl Version
OS
Windows 11 Pro (Build 22454.rs_prerelease.210903-1516)
Related component
Server
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: