Commit 9204bfdf authored by scoder's avatar scoder Committed by GitHub

Merge pull request #1975 from jdemeyer/PyWeakref_GetObject_except

Add 'except NULL' to PyWeakref_GetObject.
parents 8774a186 4073f0ab
......@@ -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