summaryrefslogtreecommitdiff
path: root/Modules/xxmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-29 13:59:29 +0000
committerGuido van Rossum <guido@python.org>2000-02-29 13:59:29 +0000
commit43713e5a2899930a8698e244b0d0fef59a676d17 (patch)
tree3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/xxmodule.c
parenta9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff)
downloadcpython-git-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c
index 04a474ce49..c0d05f4fff 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;