Home
last modified time | relevance | path

Searched refs:mro (Results 1 – 25 of 67) sorted by relevance

123

/external/protobuf/python/
Dstubout.py69 mro = list(inspect.getmro(obj.__class__))
71 mro = list(inspect.getmro(obj))
73 mro.reverse()
77 for cls in mro:
/external/tensorflow/tensorflow/python/platform/
Dgoogletest.py190 mro = list(tf_inspect.getmro(obj.__class__))
192 mro = list(tf_inspect.getmro(obj))
194 mro.reverse()
199 for cls in mro:
Dbenchmark.py139 return len(cls.mro()) <= 2
218 return len(cls.mro()) <= 3
/external/python/cpython3/Lib/
Dfunctools.py707 mro = []
714 mro.append(typ)
720 if subcls not in mro:
721 mro.append(subcls)
722 return _c3_mro(cls, abcs=mro)
734 mro = _compose_mro(cls, registry.keys())
736 for t in mro:
Dpydoc.py792 mro = deque(inspect.getmro(object))
793 if len(mro) > 2:
796 for base in mro:
870 if mro:
871 thisclass = mro.popleft()
1249 mro = deque(inspect.getmro(object))
1250 if len(mro) > 2:
1252 for base in mro:
1315 if mro:
1316 thisclass = mro.popleft()
/external/python/cpython2/Objects/
Dtypeobject.c521 PyObject* mro; in type_set_bases() local
523 "", 2, 2, &cls, &mro); in type_set_bases()
524 Py_INCREF(mro); in type_set_bases()
526 cls->tp_mro = mro; in type_set_bases()
1168 PyObject *mro; in PyType_IsSubtype() local
1173 mro = a->tp_mro; in PyType_IsSubtype()
1174 if (mro != NULL) { in PyType_IsSubtype()
1178 assert(PyTuple_Check(mro)); in PyType_IsSubtype()
1179 n = PyTuple_GET_SIZE(mro); in PyType_IsSubtype()
1181 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) in PyType_IsSubtype()
[all …]
Dobject.c1372 PyObject *mro, *base, *dict; in _PyObject_GenericGetAttrWithDict()
1375 mro = tp->tp_mro; in _PyObject_GenericGetAttrWithDict()
1376 assert(mro != NULL); in _PyObject_GenericGetAttrWithDict()
1377 assert(PyTuple_Check(mro)); in _PyObject_GenericGetAttrWithDict()
1378 n = PyTuple_GET_SIZE(mro); in _PyObject_GenericGetAttrWithDict()
1380 base = PyTuple_GET_ITEM(mro, i); in _PyObject_GenericGetAttrWithDict()
/external/python/cpython2/Lib/
Dpkgutil.py38 mro = cls.__mro__
43 mro = cls.__mro__[1:]
45 mro = object, # must be an ExtensionClass or some such :(
46 for t in mro:
Dpydoc.py767 mro = deque(inspect.getmro(object))
768 if len(mro) > 2:
771 for base in mro:
844 if mro:
845 thisclass = mro.popleft()
1192 mro = deque(inspect.getmro(object))
1193 if len(mro) > 2:
1195 for base in mro:
1253 if mro:
1254 thisclass = mro.popleft()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.estimator.export.-predict-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-regression-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-export-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-classification-output.__metaclass__.pbtxt8 name: "mro"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.estimator.export.-export-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-regression-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-classification-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-predict-output.__metaclass__.pbtxt8 name: "mro"
/external/python/cpython3/Modules/
D_abc.c646 PyObject *mro = ((PyTypeObject *)subclass)->tp_mro; in _abc__abc_subclasscheck_impl() local
647 assert(PyTuple_Check(mro)); in _abc__abc_subclasscheck_impl()
648 for (pos = 0; pos < PyTuple_GET_SIZE(mro); pos++) { in _abc__abc_subclasscheck_impl()
649 PyObject *mro_item = PyTuple_GET_ITEM(mro, pos); in _abc__abc_subclasscheck_impl()
/external/python/cpython3/Objects/
Dtypeobject.c1389 PyObject *mro; in PyType_IsSubtype() local
1391 mro = a->tp_mro; in PyType_IsSubtype()
1392 if (mro != NULL) { in PyType_IsSubtype()
1396 assert(PyTuple_Check(mro)); in PyType_IsSubtype()
1397 n = PyTuple_GET_SIZE(mro); in PyType_IsSubtype()
1399 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) in PyType_IsSubtype()
1857 mro_check(PyTypeObject *type, PyObject *mro) in mro_check() argument
1864 n = PyTuple_GET_SIZE(mro); in mro_check()
1869 tmp = PyTuple_GET_ITEM(mro, i); in mro_check()
1913 _Py_IDENTIFIER(mro); in mro_invoke()
[all …]
/external/python/cpython3/Lib/test/
Dtest_descr.py1804 self.assertEqual(A.mro(), [A, object])
1806 self.assertEqual(B.mro(), [B, A, object])
1808 self.assertEqual(C.mro(), [C, A, object])
1810 self.assertEqual(D.mro(), [D, B, C, A, object])
1815 def mro(cls): member in ClassPropertiesAndMethods.test_altmro.PerverseMetaType
1816 L = type.mro(cls)
1826 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1845 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1856 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
3999 def mro(self): member in ClassPropertiesAndMethods.test_mutable_bases_with_failing_mro.WorkOnce
[all …]
Dtest_super.py195 def mro(self): member in TestSuper.test___class___mro.Meta
198 return super().mro()
Dtest_typechecks.py16 return any(c in candidates for c in sub.mro())
Dtest_functools.py1734 mro = functools._compose_mro
1737 m = mro(dict, haystack)
1743 m = mro(collections.ChainMap, haystack)
1754 m = mro(collections.defaultdict, [c.Sized, c.Container, str])
1766 m = mro(D, bases)
1780 m = mro(C, haystack)
1881 mro = functools._c3_mro
1897 self.assertEqual(mro(X, abcs=abcs), expected)
1900 self.assertEqual(mro(X, abcs=many_abcs), expected)
/external/python/cpython2/Lib/test/
Dtest_typechecks.py17 return any(c in candidates for c in sub.mro())
/external/python/cpython3/Lib/email/
D_policybase.py104 for c in (c for base in cls.__bases__ for c in base.mro()):

123