Christian Heimes <li...@cheimes.de> added the comment:
Some audit events are designed to work before the interpreter is fully initialized or already shut down. These events pass in NULL instead of a PyObject*. Python/pystate.c: if (PySys_Audit("cpython.PyInterpreterState_New", NULL) < 0) { Python/pystate.c: if (PySys_Audit("cpython.PyInterpreterState_Clear", NULL) < 0) { Python/sysmodule.c: PySys_Audit("cpython._PySys_ClearAuditHooks", NULL); (They are also currently not documented) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37505> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com