summaryrefslogtreecommitdiff
path: root/Modules/_weakref.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-02-08 22:15:29 -0800
committerLarry Hastings <larry@hastings.org>2014-02-08 22:15:29 -0800
commit2623c8c23cead505a78ec416072223552e94727e (patch)
tree9ac129d693fd98eb33d548bc836d89e006bbb937 /Modules/_weakref.c
parent09f08fe2483aaefba367c6b0b4654c3490a32c42 (diff)
downloadcpython-git-2623c8c23cead505a78ec416072223552e94727e.tar.gz
Issue #20530: Argument Clinic's signature format has been revised again.
The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
Diffstat (limited to 'Modules/_weakref.c')
-rw-r--r--Modules/_weakref.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index 6451dba224..da589314ea 100644
--- a/Modules/_weakref.c
+++ b/Modules/_weakref.c
@@ -20,7 +20,9 @@ Return the number of weak references to 'object'.
[clinic start generated code]*/
PyDoc_STRVAR(_weakref_getweakrefcount__doc__,
-"sig=($module, object)\n"
+"getweakrefcount($module, object, /)\n"
+"--\n"
+"\n"
"Return the number of weak references to \'object\'.");
#define _WEAKREF_GETWEAKREFCOUNT_METHODDEF \
@@ -46,7 +48,7 @@ exit:
static Py_ssize_t
_weakref_getweakrefcount_impl(PyModuleDef *module, PyObject *object)
-/*[clinic end generated code: output=ef51baac56180816 input=cedb69711b6a2507]*/
+/*[clinic end generated code: output=032eedbfd7d69e10 input=cedb69711b6a2507]*/
{
PyWeakReference **list;