diff options
author | scoder <stefan_ml@behnel.de> | 2017-11-03 08:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-03 08:04:09 +0100 |
commit | 9204bfdfcd541258d7f4e37e057444cb871f055e (patch) | |
tree | 5d7f895ccb48985019c54077a1729893bc857e45 | |
parent | 8774a1868afb7f482bc8894c5b469ceee64dd673 (diff) | |
parent | 4073f0abb949260013fb2dd484923be90199d030 (diff) | |
download | cython-9204bfdfcd541258d7f4e37e057444cb871f055e.tar.gz |
Merge pull request #1975 from jdemeyer/PyWeakref_GetObject_except
Add 'except NULL' to PyWeakref_GetObject.
-rw-r--r-- | Cython/Includes/cpython/weakref.pxd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Includes/cpython/weakref.pxd b/Cython/Includes/cpython/weakref.pxd index ae710be69..9c4b50f56 100644 --- a/Cython/Includes/cpython/weakref.pxd +++ b/Cython/Includes/cpython/weakref.pxd @@ -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. |