-
Couldn't load subscription status.
- Fork 151
Use loop.create_task with interact() #270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Passing coroutines directly to asyncio.wait is deprecated since
Python 3.8, as it leads to confusing behavior:
https://docs.python.org/3.10/library/asyncio-task.html#asyncio-example-wait-coroutine
In Python 3.11, wait() no longer accepts coroutines and
must be given Tasks.
|
I can confirm this actually works. |
|
Thanks @encukou. |
|
OK, here's a bigger change: all the code that needs the loop moved to an This makes several |
|
Is it OK to drop compatibility with Python 3.6? |
|
Yes it is, do you also want to update |
|
Thanks a lot @encukou! |
Passing coroutines directly to asyncio.wait is deprecated since Python 3.8, as it leads to confusing behavior.
In Python 3.11,
wait()will no longer accept coroutines and must be given Tasks.