Skip to content

[3.9] bpo-42800: Add audit events for f_code and tb_frame (GH-24182)#25737

Merged
zooba merged 3 commits into
python:3.9from
zooba:bpo-42800-3.9
May 3, 2021
Merged

[3.9] bpo-42800: Add audit events for f_code and tb_frame (GH-24182)#25737
zooba merged 3 commits into
python:3.9from
zooba:bpo-42800-3.9

Conversation

@zooba

@zooba zooba commented Apr 30, 2021

Copy link
Copy Markdown
Member

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

https://bugs.python.org/issue42800

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
@zooba

zooba commented May 3, 2021

Copy link
Copy Markdown
Member Author

Did a bad merge on some of the documentation files somehow... will try and fix it up today.

@zooba zooba removed the DO-NOT-MERGE label May 3, 2021
@zooba
zooba merged commit bb2f3ff into python:3.9 May 3, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@zooba
zooba deleted the bpo-42800-3.9 branch May 3, 2021 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants