-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
Proposal:
- Add
BRANCH_TAKENandBRANCH_NOT_TAKENevents tosys.monitoring - Deprecate the old
BRANCHevent (as it will be redundant) - Monitoring
BRANCHevents implicitly monitors both theBRANCH_TAKENandBRANCH_NOT_TAKENevents - Disabling a
BRANCH_TAKENevent will implicitly disable the matchingBRANCHevent, but only for the taken branch - Disabling a
BRANCH_NOT_TAKENevent will implicitly disable the matchingBRANCHevent, but only for the not-taken branch - Disabling a
BRANCHevent will implicitly disable the both the matchingBRANCH_TAKENandBRANCH_NOT_TAKENevents
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
- GH-122548: Implement branch taken and not taken events for sys.monitoring #122564
- GH-122548: Correct magic number comment #128115
### 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
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement