diff options
author | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
commit | 43713e5a2899930a8698e244b0d0fef59a676d17 (patch) | |
tree | 3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/xxmodule.c | |
parent | a9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff) | |
download | cpython-43713e5a2899930a8698e244b0d0fef59a676d17.zip cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.bz2 |
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
Diffstat (limited to 'Modules/xxmodule.c')
-rw-r--r-- | Modules/xxmodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c index 04a474c..c0d05f4 100644 --- a/Modules/xxmodule.c +++ b/Modules/xxmodule.c @@ -84,7 +84,7 @@ Xxo_demo(self, args) XxoObject *self; PyObject *args; { - if (!PyArg_ParseTuple(args, "")) + if (!PyArg_ParseTuple(args, ":demo")) return NULL; Py_INCREF(Py_None); return Py_None; @@ -163,7 +163,7 @@ xx_foo(self, args) { long i, j; long res; - if (!PyArg_ParseTuple(args, "ll", &i, &j)) + if (!PyArg_ParseTuple(args, "ll:foo", &i, &j)) return NULL; res = i+j; /* XXX Do something here */ return PyInt_FromLong(res); @@ -179,7 +179,7 @@ xx_new(self, args) { XxoObject *rv; - if (!PyArg_ParseTuple(args, "")) + if (!PyArg_ParseTuple(args, ":new")) return NULL; rv = newXxoObject(args); if ( rv == NULL ) @@ -196,7 +196,7 @@ xx_bug(self, args) { PyObject *list, *item; - if (!PyArg_ParseTuple(args, "O", &list)) + if (!PyArg_ParseTuple(args, "O:bug", &list)) return NULL; item = PyList_GetItem(list, 0); @@ -219,7 +219,7 @@ xx_roj(self, args) { PyObject *a; long b; - if (!PyArg_ParseTuple(args, "O#", &a, &b)) + if (!PyArg_ParseTuple(args, "O#:roj", &a, &b)) return NULL; Py_INCREF(Py_None); return Py_None; |