]> granicus.if.org Git - python/commitdiff
Fix the docstring for sys.getrefcount().
authorFred Drake <fdrake@acm.org>
Thu, 20 Jun 2002 21:36:19 +0000 (21:36 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 20 Jun 2002 21:36:19 +0000 (21:36 +0000)
Closes SF bug #571759.

Python/sysmodule.c

index 04c643f389526eb52c9d630849b85a22ecab913d..ebf7f39ea0f2e0ab93a182f126bf4fad67d5f9de 100644 (file)
@@ -482,8 +482,9 @@ sys_gettotalrefcount(PyObject *self)
 PyDoc_STRVAR(getrefcount_doc,
 "getrefcount(object) -> integer\n\
 \n\
-Return the current reference count for the object.  This includes the\n\
-temporary reference in the argument list, so it is at least 2."
+Return the reference count of object.  The count returned is generally\n\
+one higher than you might expect, because it includes the (temporary)\n\
+reference as an argument to getrefcount()."
 );
 
 #ifdef COUNT_ALLOCS