summaryrefslogtreecommitdiffstats
path: root/Modules/xxmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-19 15:36:41 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-08-19 15:36:41 (GMT)
commitf580d27aa35aec00cf1cba03f6fcbd06283aa308 (patch)
tree829405d039d1da736f417162c5113ab1bbe1d08d /Modules/xxmodule.c
parentcdec8c746b87f1df5c7c58c4e2b205914b16ef19 (diff)
downloadcpython-f580d27aa35aec00cf1cba03f6fcbd06283aa308.zip
cpython-f580d27aa35aec00cf1cba03f6fcbd06283aa308.tar.gz
cpython-f580d27aa35aec00cf1cba03f6fcbd06283aa308.tar.bz2
Use METH_VARARGS constant in example module.
Fix comment typo
Diffstat (limited to 'Modules/xxmodule.c')
-rw-r--r--Modules/xxmodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c
index ede1979..e80c2ee 100644
--- a/Modules/xxmodule.c
+++ b/Modules/xxmodule.c
@@ -9,7 +9,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
******************************************************************/
/* Use this file as a template to start implementing a module that
- also declares objects types. All occurrences of 'Xxo' should be changed
+ also declares object types. All occurrences of 'Xxo' should be changed
to something reasonable for your objects. After that, all other
occurrences of 'xx' should be changed to something reasonable for your
module. If your module is named foo your sourcefile should be named
@@ -66,7 +66,7 @@ Xxo_demo(XxoObject *self, PyObject *args)
}
static PyMethodDef Xxo_methods[] = {
- {"demo", (PyCFunction)Xxo_demo, 1},
+ {"demo", (PyCFunction)Xxo_demo, METH_VARARGS},
{NULL, NULL} /* sentinel */
};
@@ -191,10 +191,10 @@ xx_roj(PyObject *self, PyObject *args)
/* List of functions defined in the module */
static PyMethodDef xx_methods[] = {
- {"roj", xx_roj, 1},
- {"foo", xx_foo, 1},
- {"new", xx_new, 1},
- {"bug", xx_bug, 1},
+ {"roj", xx_roj, METH_VARARGS},
+ {"foo", xx_foo, METH_VARARGS},
+ {"new", xx_new, METH_VARARGS},
+ {"bug", xx_bug, METH_VARARGS},
{NULL, NULL} /* sentinel */
};