gh-101143: Remove references to TimerHandle from asyncio.base_events.BaseEventLoop._add_callback#101197
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.
gvanrossum
left a comment
There was a problem hiding this comment.
I'm guessing that since you're deleting only dead code this doesn't need a new test.
gvanrossum
left a comment
There was a problem hiding this comment.
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._scheduledorTimerHandlebut the docstring seems to imply otherwisefixes #101143