utils.pyx (_getfd): Hack around Pyrex exception-handling bugs.
[mLib-python] / defs.pxi
index cec2d86..b14b855 100644 (file)
--- a/defs.pxi
+++ b/defs.pxi
@@ -102,6 +102,7 @@ cdef extern from 'Python.h':
   object PyLong_FromUnsignedLong(unsigned long i)
   char *PyString_AS_STRING(string)
   int _PyString_Resize(PyObject **string, int size) except -1
+  void PyErr_Clear()
 
   void Py_INCREF(PyObject *obj)
   void Py_DECREF(PyObject *obj)