summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-25 20:46:46 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-25 20:46:46 (GMT)
commit3a6f97850b2a4071f3015033fa3d68ce6fa576f4 (patch)
tree46311b5e874d4c733748e5a20de70336bf282323 /Include/Python.h
parent57f8e06e4f797abe4d2cbb41a298c5541f69b7f6 (diff)
downloadcpython-3a6f97850b2a4071f3015033fa3d68ce6fa576f4.zip
cpython-3a6f97850b2a4071f3015033fa3d68ce6fa576f4.tar.gz
cpython-3a6f97850b2a4071f3015033fa3d68ce6fa576f4.tar.bz2
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index d1ffc73..d3fce4b 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -118,6 +118,9 @@
#include "abstract.h"
#define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
+
+/* PyArg_NoArgs should not be necessary.
+ Set ml_flags in the PyMethodDef to METH_NOARGS. */
#define PyArg_NoArgs(v) PyArg_Parse(v, "")
/* Convert a possibly signed character to a nonnegative int */