diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
commit | e365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch) | |
tree | cb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/newmodule.c | |
parent | 14f515844d3eae2818af3f1da7b32c38d8e73078 (diff) | |
download | cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.zip cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.bz2 |
Use METH_VARARGS instead of numeric constant 1 in method def. tables
Diffstat (limited to 'Modules/newmodule.c')
-rw-r--r-- | Modules/newmodule.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Modules/newmodule.c b/Modules/newmodule.c index 3ebac7f..1595c0c 100644 --- a/Modules/newmodule.c +++ b/Modules/newmodule.c @@ -180,12 +180,18 @@ new_class(PyObject* unused, PyObject* args) } static PyMethodDef new_methods[] = { - {"instance", new_instance, 1, new_instance_doc}, - {"instancemethod", new_instancemethod, 1, new_im_doc}, - {"function", new_function, 1, new_function_doc}, - {"code", new_code, 1, new_code_doc}, - {"module", new_module, 1, new_module_doc}, - {"classobj", new_class, 1, new_class_doc}, + {"instance", new_instance, + METH_VARARGS, new_instance_doc}, + {"instancemethod", new_instancemethod, + METH_VARARGS, new_im_doc}, + {"function", new_function, + METH_VARARGS, new_function_doc}, + {"code", new_code, + METH_VARARGS, new_code_doc}, + {"module", new_module, + METH_VARARGS, new_module_doc}, + {"classobj", new_class, + METH_VARARGS, new_class_doc}, {NULL, NULL} /* sentinel */ }; |