Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd379e9

Browse files
committed
PyWeakref_GetObject returns None (not NULL) when the referent is gone.
1 parent d9e213e commit bd379e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/api/concrete.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ \subsection{Weak Reference Objects \label{weakref-objects}}
24092409

24102410
\begin{cfuncdesc}{PyObject*}{PyWeakref_GetObject}{PyObject *ref}
24112411
Returns the referenced object from a weak reference, \var{ref}. If
2412-
the referent is no longer live, returns \NULL.
2412+
the referent is no longer live, returns \code{None}.
24132413
\versionadded{2.2}
24142414
\end{cfuncdesc}
24152415

0 commit comments

Comments
 (0)