Steve Dower <steve.do...@python.org> added the comment:

Actually, a quick search of codeobject.c and a look at tkmk's PR makes it seem 
like the audit event should be being raised from inside 
PyCode_NewWithPosOnlyArgs anyway (which IIRC didn't exist when I first added 
the event, though it was probably there before it was merged).

In general, events should be raised after parameters have been validated, but 
before any work is done. And when all the other calls feed through a single 
function, just auditing that one function is enough.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41180>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to