Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Open
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