You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avoid materializing frame.f_locals in KI protection code, this causes locals to persist in the frame.f_locals snapshot even if they are deleted on 3.12 and below
1
+
Rework KeyboardInterrupt protection to track code objects, rather than frames,
2
+
as protected or not. This should substantially reduce its overhead, and also fixes
3
+
an issue with the previous implementation: locals' lifetimes will no longer be
4
+
extended by materialization in the ``frame.f_locals`` dictionary that the previous
5
+
KI protection logic needed to access to do its work.
0 commit comments