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

Add BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring #122548

Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement
@markshannon

Description

@markshannon

Feature or enhancement

Proposal:

Proposal:

  • AddBRANCH_TAKEN andBRANCH_NOT_TAKEN events tosys.monitoring
  • Deprecate the oldBRANCH event (as it will be redundant)
  • MonitoringBRANCH events implicitly monitors both theBRANCH_TAKEN andBRANCH_NOT_TAKEN events
  • Disabling aBRANCH_TAKEN event will implicitly disable the matchingBRANCH event, but only for the taken branch
  • Disabling aBRANCH_NOT_TAKEN event will implicitly disable the matchingBRANCH event, but only for the not-taken branch
  • Disabling aBRANCH event will implicitly disable the both the matchingBRANCH_TAKEN andBRANCH_NOT_TAKEN events

This is fully backwards compatible.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

Discussion which also links to prior discussions.

Linked PRs

### Tasks- [ ] https://github.com/python/cpython/issues/123044- [ ] https://github.com/python/cpython/issues/123048- [ ] https://github.com/python/cpython/issues/123050- [ ] https://github.com/python/cpython/issues/128375- [ ] https://github.com/python/cpython/issues/128533- [ ] https://github.com/python/cpython/issues/128534

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp