]> granicus.if.org Git - python/commitdiff
Document getrefcount().
authorGuido van Rossum <guido@python.org>
Sat, 7 Feb 1998 21:17:05 +0000 (21:17 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 7 Feb 1998 21:17:05 +0000 (21:17 +0000)
Doc/lib/libsys.tex
Doc/libsys.tex

index e4cd8756ccd61e7df06286bc7e5b21b45993dd5c..e63e616f946e71bae821f0a3c9554a5edc420005 100644 (file)
@@ -104,6 +104,12 @@ where \emph{VER} is equal to \code{sys.version[:3]}.
   cannot be trusted).
 \end{datadesc}
 
+\begin{funcdesc}{getrefcount}{object}
+Return the reference count of the \var{object}.  The count returned is
+generally one higher than you might expect, because it includes the
+(temporary) reference as an argument to \code{getrefcount()}.
+\end{funcdesc}
+
 \begin{datadesc}{last_type}
 \dataline{last_value}
 \dataline{last_traceback}
index e4cd8756ccd61e7df06286bc7e5b21b45993dd5c..e63e616f946e71bae821f0a3c9554a5edc420005 100644 (file)
@@ -104,6 +104,12 @@ where \emph{VER} is equal to \code{sys.version[:3]}.
   cannot be trusted).
 \end{datadesc}
 
+\begin{funcdesc}{getrefcount}{object}
+Return the reference count of the \var{object}.  The count returned is
+generally one higher than you might expect, because it includes the
+(temporary) reference as an argument to \code{getrefcount()}.
+\end{funcdesc}
+
 \begin{datadesc}{last_type}
 \dataline{last_value}
 \dataline{last_traceback}