GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — GH-95899: fix asyncio.Runner to call set_event_loop once by kumaraditya303 · Pull Request #95900 · python/cpython Conversation
|
|
Okay, before we do anything (here or in #95898) the difference between passing and not passing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
It would be confusing for any average user to understand as the behavior is ought to be deprecated. I stated this already in #94593 (comment).
Not sure how it could be fixed otherwise. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Between you and Thomas please come up with a doc PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It can be rolled back to the 3.10 behavior by not using Runner in IsolatedAsyncioTestCase or asyncio.run and restoring the original Runner behavior of never calling Honestly I prefer this approach anyway because it looks like Runner is adding a bunch of frames to test and asyncio.run tracebacks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Unfortunately it's kind of late in the 3.11 release cycle to do something drastic like that. If this is your only suggestion then you better go talk to Pablo. I will keep reiterating that I don't follow this code well enough to understand the consequences of your suggestion anyway. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@gvanrossum Created #95979 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
You are late in the game for that to happen, it will break the new signal handling and after rc1 these changes are not allowed anyways.
"adding a bunch of frames to test and asyncio.run tracebacks" seems like a non-issue to me. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Now that the docs are clear, this LGTM.
But I don't know about the 3.11 backport. @pablogsal What do you think? (There's another one in the queue too, #95898.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@gvanrossum Can you merge this at least in main? Regarding 3.11, the bot would create the PR and the RM can decide later when it should be merged, that shouldn't be blocker for this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I reviewed it and I am fine landing it in 3.11 if we run the buildbots first. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @kumaraditya303 for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-96003 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-95900) (cherry picked from commit 914f636) Co-authored-by: Kumar Aditya <[email protected]>
…) (#96003) (cherry picked from commit 914f636) Co-authored-by: Kumar Aditya <[email protected]>
|
At some point we can revisit this -- we now have plans to deprecate set_event_loop() and eventually we can just skip calling it altogether here. We are also working on making it so that attach_loop() is always a no-op -- it already is for ThreadedChildWatcher and Yury has a plan for making it so for PidfdChildWatcher, and then we can deprecate all other child watchers. See GH-94597 (where we will keep an up to date log of where we are in this plan). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.