Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 23946:652f1b318e5a 2.2
Fix the docstring for sys.getrefcount().
Closes SF bug #571759.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 20 Jun 2002 21:35:02 +0000 |
| parents | ef314b37e260 |
| children |
line wrap: on
line diff
--- a/Python/sysmodule.c Thu Jun 20 21:19:27 2002 +0000 +++ b/Python/sysmodule.c Thu Jun 20 21:35:02 2002 +0000 @@ -466,8 +466,9 @@ 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 *
