summaryrefslogtreecommitdiffstats
path: root/Include/descrobject.h
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2017-02-02 22:43:03 (GMT)
committerINADA Naoki <songofacandy@gmail.com>2017-02-02 22:43:03 (GMT)
commit5566bbb8d563646d83e8172410fa0c085e8233b1 (patch)
treecb8ca83c2b1a6eb01a6b51258532b4fccf548b6d /Include/descrobject.h
parent144fff8b900f9d452402a8e47ff79e88e4916d28 (diff)
downloadcpython-5566bbb8d563646d83e8172410fa0c085e8233b1.zip
cpython-5566bbb8d563646d83e8172410fa0c085e8233b1.tar.gz
cpython-5566bbb8d563646d83e8172410fa0c085e8233b1.tar.bz2
Issue #29263: LOAD_METHOD support for C methods
Calling builtin method is at most 10% faster.
Diffstat (limited to 'Include/descrobject.h')
-rw-r--r--Include/descrobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h
index 013d645..cb43174 100644
--- a/Include/descrobject.h
+++ b/Include/descrobject.h
@@ -90,6 +90,9 @@ PyAPI_FUNC(PyObject *) PyDescr_NewMember(PyTypeObject *,
PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
struct PyGetSetDef *);
#ifndef Py_LIMITED_API
+
+PyAPI_FUNC(PyObject *) _PyMethodDescr_FastCallKeywords(
+ PyObject *descrobj, PyObject **stack, Py_ssize_t nargs, PyObject *kwnames);
PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
struct wrapperbase *, void *);
#define PyDescr_IsData(d) (Py_TYPE(d)->tp_descr_set != NULL)