Lines Matching refs:im_self
155 return ((PyMethodObject *)im)->im_self; in PyMethod_Self()
2256 free_list = (PyMethodObject *)(im->im_self); in PyMethod_New()
2269 im->im_self = self; in PyMethod_New()
2289 {"im_self", T_OBJECT, OFF(im_self), READONLY|RESTRICTED,
2291 {"__self__", T_OBJECT, OFF(im_self), READONLY|RESTRICTED,
2386 Py_XDECREF(im->im_self); in instancemethod_dealloc()
2389 im->im_self = (PyObject *)free_list; in instancemethod_dealloc()
2406 if (a->im_self == b->im_self) in instancemethod_compare()
2408 if (a->im_self == NULL || b->im_self == NULL) in instancemethod_compare()
2409 return (a->im_self < b->im_self) ? -1 : 1; in instancemethod_compare()
2411 return PyObject_Compare(a->im_self, b->im_self); in instancemethod_compare()
2417 PyObject *self = a->im_self; in instancemethod_repr()
2478 if (a->im_self == NULL) in instancemethod_hash()
2481 x = PyObject_Hash(a->im_self); in instancemethod_hash()
2497 Py_VISIT(im->im_self); in instancemethod_traverse()
2681 free_list = (PyMethodObject *)(im->im_self); in PyMethod_ClearFreeList()