-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-115058: Add reset_rare_event_counters
function in _testinternalcapi
#115128
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
_rare_events
structure
_rare_events
structurereset_rare_event_counters
function in _testinternalcapi
Does it makes sense to call |
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.
Thanks. LGTM!
Modules/_testinternalcapi.c
Outdated
@@ -1650,6 +1650,20 @@ get_rare_event_counters(PyObject *self, PyObject *type) | ||
); | ||
} | ||
|
||
static PyObject * | ||
reset_rare_event_counters(PyObject *self, PyObject *type) |
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.
type
is unused, can you rename it to unused
or similar?
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 marked it as Py_UNUSED
Thanks, looks good. |
tests/test_optimizer.py
#115058