#include "Python.h"
#include "pycore_call.h"
#include "pycore_ceval.h"
#include "pycore_object.h"
#include "pycore_pyerrors.h"
#include "pycore_pystate.h"
#include "clinic/classobject.c.h"
#define _PyMethodObject_CAST(op) …
#define TP_DESCR_GET(t) …
PyObject *
PyMethod_Function(PyObject *im)
{ … }
PyObject *
PyMethod_Self(PyObject *im)
{ … }
static PyObject *
method_vectorcall(PyObject *method, PyObject *const *args,
size_t nargsf, PyObject *kwnames)
{ … }
PyObject *
PyMethod_New(PyObject *func, PyObject *self)
{ … }
static PyObject *
method___reduce___impl(PyMethodObject *self)
{ … }
static PyMethodDef method_methods[] = …;
#define MO_OFF(x) …
static PyMemberDef method_memberlist[] = …;
static PyObject *
method_get_doc(PyObject *self, void *context)
{ … }
static PyGetSetDef method_getset[] = …;
static PyObject *
method_getattro(PyObject *obj, PyObject *name)
{ … }
static PyObject *
method_new_impl(PyTypeObject *type, PyObject *function, PyObject *instance)
{ … }
static void
method_dealloc(PyObject *self)
{ … }
static PyObject *
method_richcompare(PyObject *self, PyObject *other, int op)
{ … }
static PyObject *
method_repr(PyObject *op)
{ … }
static Py_hash_t
method_hash(PyObject *self)
{ … }
static int
method_traverse(PyObject *self, visitproc visit, void *arg)
{ … }
static PyObject *
method_descr_get(PyObject *meth, PyObject *obj, PyObject *cls)
{ … }
PyTypeObject PyMethod_Type = …;
PyObject *
PyInstanceMethod_New(PyObject *func) { … }
PyObject *
PyInstanceMethod_Function(PyObject *im)
{ … }
#define IMO_OFF(x) …
static PyMemberDef instancemethod_memberlist[] = …;
static PyObject *
instancemethod_get_doc(PyObject *self, void *context)
{ … }
static PyGetSetDef instancemethod_getset[] = …;
static PyObject *
instancemethod_getattro(PyObject *self, PyObject *name)
{ … }
static void
instancemethod_dealloc(PyObject *self) { … }
static int
instancemethod_traverse(PyObject *self, visitproc visit, void *arg) { … }
static PyObject *
instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw)
{ … }
static PyObject *
instancemethod_descr_get(PyObject *descr, PyObject *obj, PyObject *type) { … }
static PyObject *
instancemethod_richcompare(PyObject *self, PyObject *other, int op)
{ … }
static PyObject *
instancemethod_repr(PyObject *self)
{ … }
static PyObject *
instancemethod_new_impl(PyTypeObject *type, PyObject *function)
{ … }
PyTypeObject PyInstanceMethod_Type = …;