From: Fred Drake Date: Thu, 20 Jun 2002 21:35:02 +0000 (+0000) Subject: Fix the docstring for sys.getrefcount(). X-Git-Tag: v2.2.2b1~307 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed06e07dc93d237bdcb36bb708fab91a8c031c06;p=thirdparty%2FPython%2Fcpython.git Fix the docstring for sys.getrefcount(). Closes SF bug #571759. --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 581a19baae05..dbe73e770b9a 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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 *