gh-108294: Add time.sleep audit event#108298
Conversation
ambv
left a comment
There was a problem hiding this comment.
I like the reasoning behind the feature. Tests work on my end.
| static PyObject * | ||
| time_sleep(PyObject *self, PyObject *timeout_obj) | ||
| { | ||
| PySys_Audit("time.sleep", "O", timeout_obj); |
There was a problem hiding this comment.
Why no error handling?
There was a problem hiding this comment.
I could tell you but it would sound like a lame excuse. (I picked up a low-priority task from May, and didn't realize how much work-in-progress it was...)
Thank you very much for spotting this! Fix incoming.
|
📚 Documentation preview 📚: https://cpython-previews--108298.org.readthedocs.build/