Kaydet (Commit) 6e91c6a3 authored tarafından Guido van Rossum's avatar Guido van Rossum

Document getrefcount().

üst b37a3952
...@@ -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