Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-125789: fix side-effects inasyncio callback scheduling methods#125833
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Changes from1 commit
be7cac9ca61908640c799a05cde222b21ccf7b6730f72c393378fe09File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1071,8 +1071,10 @@ _asyncio_Future_remove_done_callback_impl(FutureObj *self, PyTypeObject *cls, | ||
| PyErr_SetString(PyExc_RuntimeError, "corrupted future state"); | ||
picnixz marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| return NULL; | ||
| } | ||
| Py_INCREF(cb_tup); | ||
| PyObject *cb = PyTuple_GET_ITEM(cb_tup, 0); | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. A little nitpicky, but the incref should be on | ||
| int cmp = PyObject_RichCompareBool(cb, fn, Py_EQ); | ||
| Py_DECREF(cb_tup); | ||
| if (cmp == -1) { | ||
| return NULL; | ||
| } | ||