[issue37505] Early auditing broken

Steve Dower report at bugs.python.org
Tue Jul 9 06:13:59 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

Passing a NULL format string there means the same as passing NULL to PyObject_CallFunction(func, NULL) - no arguments, which results in an empty tuple being passed to the hooks.

Perhaps in the early cases we can pass NULL instead of a tuple? Maybe even assert when that case occurs and the event has parameters?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37505>
_______________________________________


More information about the Python-bugs-list mailing list