Commit 4073f0ab authored by Jeroen Demeyer's avatar Jeroen Demeyer

Add 'except NULL' to PyWeakref_GetObject.

parent dc8e8c64
......@@ -33,7 +33,7 @@ cdef extern from "Python.h":
# a weakly-referencable object, or if callback is not callable,
# None, or NULL, this will return NULL and raise TypeError.
PyObject* PyWeakref_GetObject(object ref)
PyObject* PyWeakref_GetObject(object ref) except NULL
# Return the referenced object from a weak reference, ref. If the
# referent is no longer live, returns None.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment