Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e36a8e8 commit ba3ff1bCopy full SHA for ba3ff1b
1 file changed
Python/sysmodule.c
@@ -482,8 +482,9 @@ sys_gettotalrefcount(PyObject *self)
482
PyDoc_STRVAR(getrefcount_doc,
483
"getrefcount(object) -> integer\n\
484
\n\
485
-Return the current reference count for the object. This includes the\n\
486
-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\
487
+reference as an argument to getrefcount()."
488
);
489
490
#ifdef COUNT_ALLOCS
0 commit comments