Open
Description
Feature or enhancement
Proposal:
Proposal:
- Add
BRANCH_TAKEN
andBRANCH_NOT_TAKEN
events tosys.monitoring
- Deprecate the old
BRANCH
event (as it will be redundant) - Monitoring
BRANCH
events implicitly monitors both theBRANCH_TAKEN
andBRANCH_NOT_TAKEN
events - Disabling a
BRANCH_TAKEN
event will implicitly disable the matchingBRANCH
event, but only for the taken branch - Disabling a
BRANCH_NOT_TAKEN
event will implicitly disable the matchingBRANCH
event, but only for the not-taken branch - Disabling a
BRANCH
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
- 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
(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)A feature request or enhancementA feature request or enhancement