Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

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

Open
akruis wants to merge 2 commits into
stackless-dev:3.8-slpfrom
akruis:slp-issue303-3.8
Open

Stackless issue #303: PEP-578 Audit Hooks for Stackless#304
akruis wants to merge 2 commits into
stackless-dev:3.8-slpfrom
akruis:slp-issue303-3.8

Conversation

@akruis

Copy link
Copy Markdown

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 marked this pull request as ready for review August 24, 2021 15:05
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@akruis