mirror of
https://github.com/python/cpython
synced 2026-09-29 09:50:29 +03:00
gh-85283: Add PySys_AuditTuple() function (#108965)
sys.audit() now has assertions to check that the event argument is not NULL and that the format argument does not use the "N" format. Add tests on PySys_AuditTuple().
This commit is contained in:
parent
aaf297c048
commit
bb057b3370
7 changed files with 109 additions and 9 deletions
|
|
@ -6,6 +6,10 @@ typedef int(*Py_AuditHookFunction)(const char *, PyObject *, void *);
|
|||
|
||||
PyAPI_FUNC(int) PySys_Audit(
|
||||
const char *event,
|
||||
const char *argFormat,
|
||||
const char *format,
|
||||
...);
|
||||
PyAPI_FUNC(int) PySys_AddAuditHook(Py_AuditHookFunction, void*);
|
||||
|
||||
PyAPI_FUNC(int) PySys_AuditTuple(
|
||||
const char *event,
|
||||
PyObject *args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue