Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 23947:37118b6e5f46 legacy-trunk
Fix the docstring for sys.getrefcount().
Closes SF bug #571759.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 20 Jun 2002 21:36:19 +0000 |
| parents | 43ddcdcd3c71 |
| children | 71f13cf4f9e2 |
line wrap: on
line diff
--- a/Python/sysmodule.c Thu Jun 20 21:34:35 2002 +0000 +++ b/Python/sysmodule.c Thu Jun 20 21:36:19 2002 +0000 @@ -482,8 +482,9 @@ 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
