There was an error while loading. Please reload this page.
1 parent c14190d commit dfaf9ecCopy full SHA for dfaf9ec
2 files changed
Misc/NEWS
@@ -57,6 +57,8 @@ Core and Builtins
57
Extensions
58
----------
59
60
+- Restore GIL in nis_cat in case of error.
61
+
62
- Issue #665761: ``functools.reduce()`` will no longer mask exceptions
63
other than ``TypeError`` raised by the iterator argument.
64
Modules/nismodule.c
@@ -124,6 +124,7 @@ nis_foreach (int instatus, char *inkey, int inkeylen, char *inval,
124
PyErr_Clear();
125
Py_XDECREF(key);
126
Py_XDECREF(val);
127
+ indata->state = PyEval_SaveThread();
128
return 1;
129
}
130
err = PyDict_SetItem(indata->dict, key, val);
0 commit comments