Commit bd379e96 authored by Ka-Ping Yee's avatar Ka-Ping Yee

PyWeakref_GetObject returns None (not NULL) when the referent is gone.

parent d9e213ee
...@@ -2409,7 +2409,7 @@ acts as a proxy for the original object as much as it can. ...@@ -2409,7 +2409,7 @@ acts as a proxy for the original object as much as it can.
\begin{cfuncdesc}{PyObject*}{PyWeakref_GetObject}{PyObject *ref} \begin{cfuncdesc}{PyObject*}{PyWeakref_GetObject}{PyObject *ref}
Returns the referenced object from a weak reference, \var{ref}. If Returns the referenced object from a weak reference, \var{ref}. If
the referent is no longer live, returns \NULL. the referent is no longer live, returns \code{None}.
\versionadded{2.2} \versionadded{2.2}
\end{cfuncdesc} \end{cfuncdesc}
......
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