Message385401
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.) |
|
Date |
User |
Action |
Args |
2021-01-21 09:22:02 | lunixbochs2 | set | recipients:
+ lunixbochs2, vstinner, christian.heimes, steve.dower, ammar2 |
2021-01-21 09:22:02 | lunixbochs2 | set | messageid: <1611220922.32.0.494110348317.issue42800@roundup.psfhosted.org> |
2021-01-21 09:22:02 | lunixbochs2 | link | issue42800 messages |
2021-01-21 09:22:02 | lunixbochs2 | create | |
|