]> granicus.if.org Git - python/commit
Add METH_FASTCALL calling convention
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 10 Sep 2016 00:40:22 +0000 (17:40 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 10 Sep 2016 00:40:22 +0000 (17:40 -0700)
commita9efb2f56eb6bcb97cebfadf1e778b4cb979357f
treeab942c23afa123480faca8207c99c53e804eceed
parent78601a38c22ba1f09104e2562a10a94cbd36f5f0
Add METH_FASTCALL calling convention

Issue #27810: Add a new calling convention for C functions:

    PyObject* func(PyObject *self, PyObject **args,
                   Py_ssize_t nargs, PyObject *kwnames);

Where args is a C array of positional arguments followed by values of keyword
arguments. nargs is the number of positional arguments, kwnames are keys of
keyword arguments. kwnames can be NULL.
Include/abstract.h
Include/methodobject.h
Objects/abstract.c
Objects/methodobject.c
Python/getargs.c