-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-101143: Remove references to TimerHandle from asyncio.base_events.BaseEventLoop._add_callback #101197
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
…vents.BaseEventLoop._add_callback After 592ada9 this function never adds to _scheduled
This comment was marked as outdated.
This comment was marked as outdated.
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.
I'm guessing that since you're deleting only dead code this doesn't need a new test.
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.
Works for me. I'd like @kumaraditya303 to take a look first though. Kumar, if you approve just merge it. Also, should we backport this to 3.11? Or even 3.10? The change that made it all pointless is pretty old IIUC.
Backport to 3.10 (where I saw this in production)/3.11 would be great since this has a real world impact for Home Assistant users processing d-bus messages especially on the slower RPis. |
Misc/NEWS.d/next/Library/2023-01-20-10-46-59.gh-issue-101143.hJo8hu.rst
Outdated
Show resolved
Hide resolved
Let's backport it. |
Thanks @bdraco for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry @bdraco and @kumaraditya303, I had trouble checking out the |
Thanks @bdraco for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…e_events.BaseEventLoop._add_callback` (pythonGH-101197) (cherry picked from commit 9e94767) Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-101216 is a backport of this pull request to the 3.10 branch. |
…e_events.BaseEventLoop._add_callback` (pythonGH-101197) (cherry picked from commit 9e94767) Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-101217 is a backport of this pull request to the 3.11 branch. |
Thanks for taking the time to review this. |
Thanks for the PR! It’s always great to delete code, we need more of that. |
gh-101143: Remove references to TimerHandle from asyncio.base_events.BaseEventLoop._add_callback
After 592ada9 it appears this function no longer cares about
self._scheduled
orTimerHandle
but the docstring seems to imply otherwisefixes #101143