Document getrefcount().

This commit is contained in:
Guido van Rossum 1998-02-07 21:17:05 +00:00
parent b37a395231
commit 6e91c6a344
2 changed files with 12 additions and 0 deletions

View 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}

View 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}