Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 23943:de625517ade8 | 23946:652f1b318e5a |
|---|---|
| 464 #endif /* Py_TRACE_REFS */ | 464 #endif /* Py_TRACE_REFS */ |
| 465 | 465 |
| 466 static char getrefcount_doc[] = | 466 static char getrefcount_doc[] = |
| 467 "getrefcount(object) -> integer\n\ | 467 "getrefcount(object) -> integer\n\ |
| 468 \n\ | 468 \n\ |
| 469 Return the current reference count for the object. This includes the\n\ | 469 Return the reference count of object. The count returned is generally\n\ |
| 470 temporary reference in the argument list, so it is at least 2."; | 470 one higher than you might expect, because it includes the (temporary)\n\ |
| 471 reference as an argument to getrefcount()."; | |
| 471 | 472 |
| 472 #ifdef COUNT_ALLOCS | 473 #ifdef COUNT_ALLOCS |
| 473 static PyObject * | 474 static PyObject * |
| 474 sys_getcounts(PyObject *self) | 475 sys_getcounts(PyObject *self) |
| 475 { | 476 { |
