Home
last modified time | relevance | path

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

1234

/external/protobuf/python/
Dstubout.py72 mro = list(inspect.getmro(obj.__class__))
74 mro = list(inspect.getmro(obj))
76 mro.reverse()
80 for cls in mro:
/external/python/pyfakefs/pyfakefs/
Dmox3_stubout.py82 mro = list(inspect.getmro(obj.__class__))
84 mro = list(inspect.getmro(obj))
86 mro.reverse()
90 for cls in mro:
/external/tensorflow/tensorflow/python/platform/
Dgoogletest.py192 mro = list(tf_inspect.getmro(obj.__class__))
194 mro = list(tf_inspect.getmro(obj))
196 mro.reverse()
201 for cls in mro:
Dbenchmark.py248 return len(cls.mro()) <= 2
333 return len(cls.mro()) <= 3
/external/python/cpython3/Lib/
Dfunctools.py755 mro = []
762 mro.append(typ)
768 if subcls not in mro:
769 mro.append(subcls)
770 return _c3_mro(cls, abcs=mro)
782 mro = _compose_mro(cls, registry.keys())
784 for t in mro:
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.estimator.export.-predict-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-export-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.__internal__.test.-parameterized-benchmark.pbtxt10 name: "mro"
Dtensorflow.estimator.export.-classification-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-regression-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.keras.layers.experimental.preprocessing.-discretization.-discretizing-combiner.__metaclass__.pbtxt8 name: "mro"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.estimator.export.-classification-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-regression-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-predict-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.estimator.export.-export-output.__metaclass__.pbtxt8 name: "mro"
Dtensorflow.keras.layers.experimental.preprocessing.-discretization.-discretizing-combiner.__metaclass__.pbtxt8 name: "mro"
/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/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 …]
/external/python/cpython3/Modules/
D_abc.c687 PyObject *mro = ((PyTypeObject *)subclass)->tp_mro; in _abc__abc_subclasscheck_impl() local
688 assert(PyTuple_Check(mro)); in _abc__abc_subclasscheck_impl()
689 for (pos = 0; pos < PyTuple_GET_SIZE(mro); pos++) { in _abc__abc_subclasscheck_impl()
690 PyObject *mro_item = PyTuple_GET_ITEM(mro, pos); in _abc__abc_subclasscheck_impl()
/external/python/cpython3/Objects/
Dtypeobject.c83 _Py_IDENTIFIER(mro);
1406 PyObject *mro; in PyType_IsSubtype() local
1408 mro = a->tp_mro; in PyType_IsSubtype()
1409 if (mro != NULL) { in PyType_IsSubtype()
1413 assert(PyTuple_Check(mro)); in PyType_IsSubtype()
1414 n = PyTuple_GET_SIZE(mro); in PyType_IsSubtype()
1416 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) in PyType_IsSubtype()
1883 mro_check(PyTypeObject *type, PyObject *mro) in mro_check() argument
1890 n = PyTuple_GET_SIZE(mro); in mro_check()
1895 tmp = PyTuple_GET_ITEM(mro, i); in mro_check()
[all …]
/external/python/cpython3/Lib/test/
Dtest_descr.py1832 self.assertEqual(A.mro(), [A, object])
1834 self.assertEqual(B.mro(), [B, A, object])
1836 self.assertEqual(C.mro(), [C, A, object])
1838 self.assertEqual(D.mro(), [D, B, C, A, object])
1843 def mro(cls): member in ClassPropertiesAndMethods.test_altmro.PerverseMetaType
1844 L = type.mro(cls)
1854 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1873 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1884 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
4046 def mro(self): member in ClassPropertiesAndMethods.test_mutable_bases_with_failing_mro.WorkOnce
[all …]
Dtest_super.py189 def mro(self): member in TestSuper.test___class___mro.Meta
192 return super().mro()
Dtest_typechecks.py16 return any(c in candidates for c in sub.mro())
/external/python/cpython2/Lib/test/
Dtest_typechecks.py17 return any(c in candidates for c in sub.mro())

1234