Lines Matching defs:method
15 class method "PyMethodObject *" "&PyMethod_Type"
42 method_vectorcall(PyObject *method, PyObject *const *args,
45 assert(Py_IS_TYPE(method, &PyMethod_Type));
48 PyObject *self = PyMethod_GET_SELF(method);
49 PyObject *func = PyMethod_GET_FUNCTION(method);
126 method.__reduce__
156 "the function (or other callable) implementing a method"},
158 "the instance to which a method is bound"},
162 /* Christian Tismer argued convincingly that method attributes should
208 method.__new__ as method_new
213 Create a bound instance method object.
295 result = PyUnicode_FromFormat("<bound method %V of %R>",
326 .tp_name = "method",
348 * instance method
358 PyInstanceMethodObject *method;
359 method = PyObject_GC_New(PyInstanceMethodObject,
361 if (method == NULL) return NULL;
363 method->func = func;
364 _PyObject_GC_TRACK(method);
365 return (PyObject *)method;
382 "the function (or other callable) implementing a method"},