Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 849b6bd

Browse files
committed
Issue #15657: Merge METH_KEYWORDS doc from 3.6
2 parents 8b866d5 + a27b3b3 commit 849b6bd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/c-api/structures.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,8 @@ specific C type of the *self* object.
150150
The :attr:`ml_flags` field is a bitfield which can include the following flags.
151151
The individual flags indicate either a calling convention or a binding
152152
convention. Of the calling convention flags, only :const:`METH_VARARGS` and
153-
:const:`METH_KEYWORDS` can be combined (but note that :const:`METH_KEYWORDS`
154-
alone is equivalent to ``METH_VARARGS | METH_KEYWORDS``). Any of the calling
155-
convention flags can be combined with a binding flag.
153+
:const:`METH_KEYWORDS` can be combined. Any of the calling convention flags
154+
can be combined with a binding flag.
156155

157156

158157
.. data:: METH_VARARGS
@@ -169,7 +168,7 @@ convention flags can be combined with a binding flag.
169168

170169
Methods with these flags must be of type :c:type:`PyCFunctionWithKeywords`.
171170
The function expects three parameters: *self*, *args*, and a dictionary of
172-
all the keyword arguments. The flag is typically combined with
171+
all the keyword arguments. The flag must be combined with
173172
:const:`METH_VARARGS`, and the parameters are typically processed using
174173
:c:func:`PyArg_ParseTupleAndKeywords`.
175174

0 commit comments

Comments
 (0)