Feature or enhancement
Proposal:
Proposal:
- Add
BRANCH_TAKEN and BRANCH_NOT_TAKEN events to sys.monitoring
- Deprecate the old
BRANCH event (as it will be redundant)
- Monitoring
BRANCH events implicitly monitors both the BRANCH_TAKEN and BRANCH_NOT_TAKEN events
- Disabling a
BRANCH_TAKEN event will implicitly disable the matching BRANCH event, but only for the taken branch
- Disabling a
BRANCH_NOT_TAKEN event will implicitly disable the matching BRANCH event, but only for the not-taken branch
- Disabling a
BRANCH event will implicitly disable the both the matching BRANCH_TAKEN and BRANCH_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
Feature or enhancement
Proposal:
Proposal:
BRANCH_TAKENandBRANCH_NOT_TAKENevents tosys.monitoringBRANCHevent (as it will be redundant)BRANCHevents implicitly monitors both theBRANCH_TAKENandBRANCH_NOT_TAKENeventsBRANCH_TAKENevent will implicitly disable the matchingBRANCHevent, but only for the taken branchBRANCH_NOT_TAKENevent will implicitly disable the matchingBRANCHevent, but only for the not-taken branchBRANCHevent will implicitly disable the both the matchingBRANCH_TAKENandBRANCH_NOT_TAKENeventsThis 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