Skip to content

sys.monitoring.set_local_events() allows "non local" events like RAISE, in contradiction to PEP 669. #108470

Closed
@markshannon

Description

@markshannon

Bug report

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched the CPython issue tracker,
    and am confident this bug has not been reported before

CPython versions tested on:

3.12

Operating systems tested on:

No response

Output from running 'python -VV' on the command line:

No response

A clear and concise description of the bug:

sys.monitoring.set_local_events(TOOL, code, sys.monitoring.events.RAISE) should raise an exception, but succeeds.

This was discovered when investigating #108390.
Fixed by #108420

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixesrelease-blockertype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions