Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stackless issue #303: PEP-578 Audit Hooks for Stackless #304

Open
wants to merge 2 commits into
base: 3.8-slp
Choose a base branch
from

Conversation

akruis
Copy link

@akruis akruis commented Aug 22, 2021

An implementation for issue #303

Stackless now raises more auditing events.
- Reducing objects of type AsyncGeneratorType, CoroutineType or
  GeneratorType, reading the attribute 'tasklet.frame' or calling
  'PyTasklet_GetFrame()' raises an auditing event "sys._getframe" with no
  arguments.
- Unpickling of a frame that could be evaluated now raises auditing event
  "stackless.frame.__setstate__" with no arguments and, if the frame has a
  trace function, also auditing event "sys.settrace".
- If Stackless pickle flag bit 'PICKLEFLAGS_PRESERVE_AG_FINALIZER' is set
  then unpickling an async_generator with a pickled finalizer raises auditing
  event "stackless.async_generator.set_finalizer".
@akruis akruis added the 3.8-slp label Aug 22, 2021
@akruis akruis marked this pull request as ready for review August 24, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant