diff options
author | Larry Hastings <larry@hastings.org> | 2013-11-23 23:37:55 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2013-11-23 23:37:55 (GMT) |
commit | 44e2eaab5491881120aab43e2838da8afe7ab70e (patch) | |
tree | 92847876fa89736ab40d027431ff27e4973409c9 /Modules/_weakref.c | |
parent | 7fa6e1aeea111e7d954b753fb483afc18f21add0 (diff) | |
download | cpython-44e2eaab5491881120aab43e2838da8afe7ab70e.zip cpython-44e2eaab5491881120aab43e2838da8afe7ab70e.tar.gz cpython-44e2eaab5491881120aab43e2838da8afe7ab70e.tar.bz2 |
Issue #19674: inspect.signature() now produces a correct signature
for some builtins.
Diffstat (limited to 'Modules/_weakref.c')
-rw-r--r-- | Modules/_weakref.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c index af845ff..80de5da4 100644 --- a/Modules/_weakref.c +++ b/Modules/_weakref.c @@ -5,8 +5,11 @@ ((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o)) /*[clinic] - module _weakref +[clinic]*/ +/*[clinic checksum: da39a3ee5e6b4b0d3255bfef95601890afd80709]*/ + +/*[clinic] _weakref.getweakrefcount -> Py_ssize_t @@ -17,9 +20,8 @@ Return the number of weak references to 'object'. [clinic]*/ PyDoc_STRVAR(_weakref_getweakrefcount__doc__, -"Return the number of weak references to \'object\'.\n" -"\n" -"_weakref.getweakrefcount(object)"); +"getweakrefcount(object)\n" +"Return the number of weak references to \'object\'."); #define _WEAKREF_GETWEAKREFCOUNT_METHODDEF \ {"getweakrefcount", (PyCFunction)_weakref_getweakrefcount, METH_O, _weakref_getweakrefcount__doc__}, @@ -43,7 +45,7 @@ exit: static Py_ssize_t _weakref_getweakrefcount_impl(PyModuleDef *module, PyObject *object) -/*[clinic checksum: 015113be0c9a0a8672d35df10c63e3642cc23da4]*/ +/*[clinic checksum: 436e8fbe0297434375f039d8c2d9fc3a9bbe773c]*/ { PyWeakReference **list; |