diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-03 21:20:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-03 21:20:15 +0300 |
| commit | 6969eaf4682beb01bc95eeb14f5ce6c01312e297 (patch) | |
| tree | c81a3d9bca3e9d01f557c46a8534a4e3873403f9 /Modules/clinic/_opcode.c.h | |
| parent | aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c (diff) | |
| download | cpython-git-6969eaf4682beb01bc95eeb14f5ce6c01312e297.tar.gz | |
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
the bare METH_FASTCALL be used for functions with positional-only
parameters.
Diffstat (limited to 'Modules/clinic/_opcode.c.h')
| -rw-r--r-- | Modules/clinic/_opcode.c.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/clinic/_opcode.c.h b/Modules/clinic/_opcode.c.h index 2f5fd0da6e..2de8bd77d6 100644 --- a/Modules/clinic/_opcode.c.h +++ b/Modules/clinic/_opcode.c.h @@ -15,17 +15,13 @@ static int _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg); static PyObject * -_opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int opcode; PyObject *oparg = Py_None; int _return_value; - if (!_PyArg_NoStackKeywords("stack_effect", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "i|O:stack_effect", &opcode, &oparg)) { goto exit; @@ -39,4 +35,4 @@ _opcode_stack_effect(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObje exit: return return_value; } -/*[clinic end generated code: output=38f3bf305b3bb601 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=616105b05b55eb45 input=a9049054013a1b77]*/ |
