Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sys.settrace set some events without callbacks #117385

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@gaogaotiantian

Description

@gaogaotiantian

Bug report

Bug description:

sys.settrace setsPY_MONITORING_EVENT_BRANCH andPY_MONITORING_EVENT_EXCEPTION_HANDLED monitoring events but does not have any registered callbacks. Those two events should not generate any legacy trace events (andsys.settrace works fine without it for a long time), so we should just remove those.

This improves trace performance a bit (~3% for fib + empty tracefunc) as the events do not fire anymore.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp