Skip to content

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

Merged
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-bb2f3ff-3.8
May 3, 2021
Merged

[3.8] bpo-42800: Add audit events for f_code and tb_frame (GH-24182)#25849
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-bb2f3ff-3.8

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented May 3, 2021

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
    (cherry picked from commit bb2f3ff)

Co-authored-by: Steve Dower [email protected]

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
(cherry picked from commit bb2f3ff)

Co-authored-by: Steve Dower <[email protected]>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@lunixbochs and @zooba: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Copy Markdown
Contributor Author

@lunixbochs and @zooba: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Copy Markdown
Contributor Author

@lunixbochs and @zooba: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 8ab272f into python:3.8 May 3, 2021
@miss-islington miss-islington deleted the backport-bb2f3ff-3.8 branch May 3, 2021 13:24
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