diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-05 21:59:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 21:59:35 (GMT) |
commit | bb057b337008626139d97269485b1dddf70ae427 (patch) | |
tree | 72f3c3f1a9de9e5aff9926aba7c4def0c1053c44 /Include/cpython | |
parent | aaf297c048694cd9652790f8b74e69f7ddadfbde (diff) | |
download | cpython-bb057b337008626139d97269485b1dddf70ae427.zip cpython-bb057b337008626139d97269485b1dddf70ae427.tar.gz cpython-bb057b337008626139d97269485b1dddf70ae427.tar.bz2 |
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().
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/sysmodule.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/cpython/sysmodule.h b/Include/cpython/sysmodule.h index e028fb7..36c4f89 100644 --- a/Include/cpython/sysmodule.h +++ b/Include/cpython/sysmodule.h @@ -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); |