This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lunixbochs2
Recipients ammar2, christian.heimes, lunixbochs2, steve.dower, vstinner
Date 2021-01-21.09:22:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611220922.32.0.494110348317.issue42800@roundup.psfhosted.org>
In-reply-to
Content
I just found out that generator object variants have their own code attributes. I investigated the stdlib usage and it seems to be for debug / dis only, so adding these attributes shouldn't impact performance.

I updated the PR to now cover the following attributes:

PyTracebackObject.tb_frame
PyFrameObject.f_code
PyGenObject.gi_code
PyCoroObject.cr_code
PyAsyncGenObject.ag_code

I have also attached a `check_hooks.py` file which allows for quick visual inspection that all of the hooks are working (It prints each attribute name, then accesses it. Expected output is an AUDIT line after each attribute printed.)
History
Date User Action Args
2021-01-21 09:22:02lunixbochs2setrecipients: + lunixbochs2, vstinner, christian.heimes, steve.dower, ammar2
2021-01-21 09:22:02lunixbochs2setmessageid: <1611220922.32.0.494110348317.issue42800@roundup.psfhosted.org>
2021-01-21 09:22:02lunixbochs2linkissue42800 messages
2021-01-21 09:22:02lunixbochs2create