]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the docstring for sys.getrefcount().
authorFred Drake <fdrake@acm.org>
Thu, 20 Jun 2002 21:35:02 +0000 (21:35 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 20 Jun 2002 21:35:02 +0000 (21:35 +0000)
Closes SF bug #571759.

Python/sysmodule.c

index 581a19baae0512618d06a1d7f944d5e3cf5487af..dbe73e770b9acdec721d36bcd21674c4d0e17378 100644 (file)
@@ -466,8 +466,9 @@ sys_gettotalrefcount(PyObject *self)
 static char 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
 static PyObject *