summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsys.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-07 21:17:05 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-07 21:17:05 (GMT)
commit6e91c6a34458efe77af0bce7abde706204ba0e64 (patch)
tree5af8d6cc9a19a209ea319dfc3371cf1029b38438 /Doc/lib/libsys.tex
parentb37a3952319835c2c5c3377e4a9496539186518d (diff)
downloadcpython-6e91c6a34458efe77af0bce7abde706204ba0e64.zip
cpython-6e91c6a34458efe77af0bce7abde706204ba0e64.tar.gz
cpython-6e91c6a34458efe77af0bce7abde706204ba0e64.tar.bz2
Document getrefcount().
Diffstat (limited to 'Doc/lib/libsys.tex')
-rw-r--r--Doc/lib/libsys.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index e4cd875..e63e616 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -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}