Commit 847f3754 authored by Michael W. Hudson's avatar Michael W. Hudson

Correct lie about METH_NOARGS functions.

Backport candidate.
parent 90e05b0e
...@@ -244,7 +244,7 @@ binding flag. ...@@ -244,7 +244,7 @@ binding flag.
\cfunction{Py_InitModule()} was used). The second parameter \cfunction{Py_InitModule()} was used). The second parameter
(often called \var{args}) is a tuple object representing all (often called \var{args}) is a tuple object representing all
arguments. This parameter is typically processed using arguments. This parameter is typically processed using
\cfunction{PyArg_ParseTuple()}. \cfunction{PyArg_ParseTuple()} or \cfunction{PyArg_UnpackTuple}.
\end{datadesc} \end{datadesc}
\begin{datadesc}{METH_KEYWORDS} \begin{datadesc}{METH_KEYWORDS}
...@@ -259,10 +259,10 @@ binding flag. ...@@ -259,10 +259,10 @@ binding flag.
\begin{datadesc}{METH_NOARGS} \begin{datadesc}{METH_NOARGS}
Methods without parameters don't need to check whether arguments are Methods without parameters don't need to check whether arguments are
given if they are listed with the \constant{METH_NOARGS} flag. They given if they are listed with the \constant{METH_NOARGS} flag. They
need to be of type \ctype{PyNoArgsFunction}: they expect a single need to be of type \ctype{PyCFunction}. When used with object
single \ctype{PyObject*} as a parameter. When used with object methods, the first parameter is typically named \code{self} and will
methods, this parameter is typically named \code{self} and will hold hold a reference to the object instance. In all cases the second
a reference to the object instance. parameter will be \NULL.
\end{datadesc} \end{datadesc}
\begin{datadesc}{METH_O} \begin{datadesc}{METH_O}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment