/external/python/cpython3/Objects/ |
D | classobject.c | 39 return ((PyMethodObject *)im)->im_self; in PyMethod_Self() 57 free_list = (PyMethodObject *)(im->im_self); in PyMethod_New() 70 im->im_self = self; in PyMethod_New() 105 {"__self__", T_OBJECT, MO_OFF(im_self), READONLY|RESTRICTED, 197 Py_XDECREF(im->im_self); in method_dealloc() 199 im->im_self = (PyObject *)free_list; in method_dealloc() 225 if (a->im_self == NULL || b->im_self == NULL) in method_richcompare() 226 eq = a->im_self == b->im_self; in method_richcompare() 228 eq = PyObject_RichCompareBool(a->im_self, b->im_self, in method_richcompare() 244 PyObject *self = a->im_self; in method_repr() [all …]
|
/external/python/cpython3/Include/ |
D | classobject.h | 15 PyObject *im_self; /* The instance it is bound to */ member 33 (((PyMethodObject *)meth) -> im_self)
|
/external/python/cpython2/Include/ |
D | classobject.h | 34 PyObject *im_self; /* The instance it is bound to, or NULL */ member 72 (((PyMethodObject *)meth) -> im_self)
|
/external/python/cpython2/Objects/ |
D | classobject.c | 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() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_pyclbr.py | 77 if obj.im_self is not None: 79 obj.im_self is not oclass):
|
D | test_funcattrs.py | 182 self.assertEqual(self.f.a.im_self, None) 183 self.assertEqual(self.fi.a.im_self, self.fi)
|
D | test_descr.py | 1405 self.assertEqual(C.goo.im_self, C) 1406 self.assertEqual(D.goo.im_self, D) 1407 self.assertEqual(super(D,D).goo.im_self, D) 1408 self.assertEqual(super(D,d).goo.im_self, D) 4626 self.assertIs(l.__add__.im_self, l)
|
D | test_copy.py | 754 self.assertTrue(g.b.im_self is g)
|
/external/python/cpython2/Lib/multiprocessing/ |
D | forking.py | 71 if m.im_self is None: 74 return getattr, (m.im_self, m.im_func.func_name)
|
/external/python/cpython2/Lib/idlelib/ |
D | CallTips.py | 170 if ob.im_self is not None:
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | metrics_utils.py | 134 instance_ref = weakref.ref(method.im_self)
|
/external/python/cpython2/Lib/ |
D | inspect.py | 939 if ismethod(func) and func.im_self is not None: 941 positional = (func.im_self,) + positional
|
D | copy.py | 264 return type(x)(x.im_func, deepcopy(x.im_self, memo), x.im_class)
|
D | pydoc.py | 916 if object.im_self is not None: 918 object.im_self.__class__, mod) 1306 if object.im_self is not None: 1308 object.im_self.__class__, mod)
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 571 Special read-only attributes: :attr:`im_self` is the class instance object, 573 :attr:`im_self` for bound methods or the class that asked for the method for 580 :attr:`im_self` used to refer to the class that defined the method. 584 :attr:`__func__`, and :attr:`im_self` as :attr:`__self__`. 591 single: im_self (method attribute) 607 single: im_self (method attribute) 610 function object from a class, its :attr:`im_self` attribute is ``None`` 613 instances, its :attr:`im_self` attribute is the instance, and the method 628 single: im_self (method attribute) 631 from a class or instance, its :attr:`im_self` attribute is the class itself, and [all …]
|
/external/python/cpython2/Doc/howto/ |
D | descriptor.rst | 310 with two different representations depending on whether the :attr:`im_self` 313 Likewise, the effects of calling a method object depend on the :attr:`im_self`
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6a2.rst | 142 im_self -> __self__ and im_func -> __func__
|
/external/python/cpython2/Doc/library/ |
D | inspect.rst | 64 | | im_self or | instance to which this | |
|
D | stdtypes.rst | 2978 methods: ``m.im_self`` is the object on which the method operates, and 2980 arg-2, ..., arg-n)`` is completely equivalent to calling ``m.im_func(m.im_self, 2985 is unbound, its ``im_self`` attribute will be ``None`` and if called, an
|
/external/python/cpython2/Doc/tutorial/ |
D | classes.rst | 696 Instance method objects have attributes, too: ``m.im_self`` is the instance
|
/external/python/cpython3/Lib/test/ |
D | test_descr.py | 4371 self.assertIs(l.__add__.im_self, l)
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 1267 im_self (instance/None, R/O): target instance object (None if unbound)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1676 comprising the method; the new synonym for :attr:`im_self` is
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.6.rst | 1680 comprising the method; the new synonym for :attr:`im_self` is
|
/external/python/cpython3/Misc/ |
D | HISTORY | 17122 im_class attribute is removed and im_func + im_self are renamed to 18690 with im_class == im_self == NULL, which caused a crash when called.
|