Commit 86909574 authored by Jeroen Demeyer's avatar Jeroen Demeyer Committed by Stefan Behnel

Add 'except NULL' to PyWeakref_GetObject.

parent 9bf7db18
...@@ -33,7 +33,7 @@ cdef extern from "Python.h": ...@@ -33,7 +33,7 @@ cdef extern from "Python.h":
# a weakly-referencable object, or if callback is not callable, # a weakly-referencable object, or if callback is not callable,
# None, or NULL, this will return NULL and raise TypeError. # 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 # Return the referenced object from a weak reference, ref. If the
# referent is no longer live, returns None. # 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