]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make PyErr_Occurred return NULL if there is no current thread. Previously it
authorJeffrey Yasskin <jyasskin@gmail.com>
Thu, 13 May 2010 18:31:05 +0000 (18:31 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Thu, 13 May 2010 18:31:05 +0000 (18:31 +0000)
commit8e0bdfd1d473ddffaf3501768678f8a970019da8
treedf31716c768c6512c72f40819f0cc752c7e742f4
parentf55621115cb2b73f60e7396cbade18a89a80d989
Make PyErr_Occurred return NULL if there is no current thread.  Previously it
would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite
recursion.

Fixes issue 3605.
Lib/test/test_capi.py
Modules/_testcapimodule.c
Python/errors.c