-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
bpo-34790: Implement deprecation of passing coroutines to asyncio.wait() #16977
bpo-34790: Implement deprecation of passing coroutines to asyncio.wait() #16977
Conversation
Adding a |
Done, removing [aeros:~/repos/aeros-cpython]$ ./python -W error -m test test_asyncio == Tests result: SUCCESS == 1 test OK. Total duration: 43.2 sec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The PR should not be backported to 3.8, right?
It raises new deprecations that were absent in 3.8.0; adding them in 3.8.1 is confusing.
Yep, that's why I did this one separately from #16975, which only fixed the 3.8 whatsnew entry based on Yury's suggestion. Otherwise, the changes would've been combined into the same PR.
Agreed, I'm starting to realize that we should try to avoid implementing significant deprecations partway through a major version (3.x) when possible. It would more likely comely across to users as a surprise and lead to some confusion rather than being overly helpful. For example, if users have already ran their tests with warnings enabled and resolved any deprecation warnings for 3.8.0, I don't think it would be a great experience for them to encounter a bunch of new ones in 3.8.1. |
@1st1 @asvetlov What are your thoughts on updating the documentation for As a result, I would like to structure it similarly to the documentation for For more context, see #16977 (comment). |
Thanks. |
Yeah, I'll have to spend more time fleshing those ideas out and consider if the proposals might be worthwhile. Thanks! |
/cc @1st1 @asvetlov
https://bugs.python.org/issue34790