gh-98257: Make _PyEval_SetTrace() reentrant (#98258)
Make sys.setprofile() and sys.settrace() functions reentrant. They
can no long fail with: RuntimeError("Cannot install a trace function
while another trace function is being installed").
Make _PyEval_SetTrace() and _PyEval_SetProfile() functions reentrant,
rather than detecting and rejecting reentrant calls. Only delete the
reference to function arguments once the new function is fully set,
when a reentrant call is safe. Call also _PySys_Audit() earlier. V
Victor Stinner committed
a8fe4bbd6b78517f640e25697338b9448c4675c1
Parent: 4bd63f6
Committed by GitHub <noreply@github.com>
on 10/19/2022, 10:31:47 PM