Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
GH-108390: Prevent non-local events being set withsys.monitoring.set_local_events()#108420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
sys.monitoring.set_local_events()sys.monitoring.set_local_events()markshannon commentedAug 25, 2023
Also fixes#108470 |
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Core and Builtins/2023-08-13-17-18-22.gh-issue-108390.TkBccC.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
miss-islington commentedSep 5, 2023
Thanks@markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
miss-islington commentedSep 5, 2023
Sorry,@markshannon, I could not cleanly backport this to |
…ing.set_local_events()` (pythonGH-108420)
…ing.set_local_events()` (pythonGH-108420)
bedevere-bot commentedSep 5, 2023
|
…ing.set_local_events()` (pythonGH-108420)
bedevere-bot commentedSep 5, 2023
GH-108899 is a backport of this pull request to the3.12 branch. |
Uh oh!
There was an error while loading.Please reload this page.
PEP 669 refers to "local events" and implies strongly, if not explicitly stated, that only local events can be set locally.
But, the implementation allows non-local events, like
RAISE, to be set locally.This PR fixes that, which allows the crash reported in#108390 to be fixed as well.
Although a relatively large PR, as it will need backporting, it is really just splitting
_Py_Monitorsinto_Py_LocalMonitorsand_Py_GlobalMonitorsand fixing the resulting compiler errors and warnings.