]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42800: Add audit events for f_code and tb_frame (GH-24182)
authorSteve Dower <steve.dower@python.org>
Mon, 3 May 2021 13:06:36 +0000 (14:06 +0100)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 13:06:36 +0000 (14:06 +0100)
commitbb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209
tree6fea32214cc39992ce43a29309a1a1076b804ae4
parent1536342c4491ffc70adeb540a04381e90ea623d7
bpo-42800: Add audit events for f_code and tb_frame (GH-24182)

Accessing the following attributes will now fire PEP 578 style audit hooks as (object.__getattr__, obj, name):
* PyTracebackObject: tb_frame
* PyFrameObject: f_code
* PyGenObject: gi_code, gi_frame
* PyCoroObject: cr_code, cr_frame
* PyAsyncGenObject: ag_code, ag_frame
Doc/library/audit_events.rst
Doc/library/stdtypes.rst
Doc/reference/datamodel.rst
Misc/ACKS
Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst [new file with mode: 0644]
Objects/frameobject.c
Objects/genobject.c
Python/traceback.c