bpo-38733: PyErr_Occurred() caller must hold the GIL (GH-17080)
bpo-3605, bpo-38733: Optimize _PyErr_Occurred(): remove "tstate == NULL" test. Py_FatalError() no longer calls PyErr_Occurred() if called without holding the GIL. So PyErr_Occurred() no longer has to support tstate==NULL case. _Py_CheckFunctionResult(): use directly _PyErr_Occurred() to avoid explicit "!= NULL" test.
V
Victor Stinner committed
d12d0e7c0fe2b49c40ac4d66365147c619d6c475
Parent: 991b02d
Committed by GitHub <noreply@github.com>
on 11/7/2019, 11:42:07 AM