Skip to content

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

Closed

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

Activity

  1. self-assigned this
    on Aug 25, 2023
  2. Yhg1s commented on Sep 4, 2023

    @Yhg1s
    Member

    rc2 is scheduled for today. How close is this to getting fixed? I'll probably push the release to tomorrow regardless, but let me know if it needs more time.

  3. markshannon commented on Sep 5, 2023

    @markshannon
    MemberAuthor

    Fixed in main
    #108899 is the backport to 3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions