From 44e2eaab5491881120aab43e2838da8afe7ab70e Mon Sep 17 00:00:00 2001 From: Larry Hastings Date: Sat, 23 Nov 2013 15:37:55 -0800 Subject: Issue #19674: inspect.signature() now produces a correct signature for some builtins. --- Modules/_weakref.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Modules/_weakref.c') diff --git a/Modules/_weakref.c b/Modules/_weakref.c index af845fff52..80de5da4d5 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; -- cgit v1.2.1