Commit ba19a03e authored by Guido van Rossum's avatar Guido van Rossum

Document getrefcount().

parent fd396259
...@@ -104,6 +104,12 @@ where \emph{VER} is equal to \code{sys.version[:3]}. ...@@ -104,6 +104,12 @@ where \emph{VER} is equal to \code{sys.version[:3]}.
cannot be trusted). cannot be trusted).
\end{datadesc} \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} \begin{datadesc}{last_type}
\dataline{last_value} \dataline{last_value}
\dataline{last_traceback} \dataline{last_traceback}
......
...@@ -104,6 +104,12 @@ where \emph{VER} is equal to \code{sys.version[:3]}. ...@@ -104,6 +104,12 @@ where \emph{VER} is equal to \code{sys.version[:3]}.
cannot be trusted). cannot be trusted).
\end{datadesc} \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} \begin{datadesc}{last_type}
\dataline{last_value} \dataline{last_value}
\dataline{last_traceback} \dataline{last_traceback}
......
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