Home
last modified time | relevance | path

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

123

/third_party/protobuf/python/
Dstubout.py72 mro = list(inspect.getmro(obj.__class__))
74 mro = list(inspect.getmro(obj))
76 mro.reverse()
80 for cls in mro:
/third_party/python/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:
Dpydoc.py877 mro = deque(inspect.getmro(object))
878 if len(mro) > 2:
881 for base in mro:
952 if mro:
953 thisclass = mro.popleft()
1334 mro = deque(inspect.getmro(object))
1335 if len(mro) > 2:
1337 for base in mro:
1415 if mro:
1416 thisclass = mro.popleft()
Dinspect.py330 mro = (object,) + getmro(object)
332 mro = ()
356 for base in mro:
399 mro = getmro(cls)
402 class_bases = (cls,) + mro
408 for base in mro:
D_collections_abc.py79 mro = C.__mro__
81 for B in mro:
Denum.py222 k for c in enum_class.mro()
720 for cls in self.__class__.mro()
/third_party/python/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()
Dgc_weakref.txt18 often by setting a class's mro pointer to NULL, after which attribute
/third_party/python/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 …]
/third_party/python/Lib/test/
Dtest_super.py189 def mro(self): member in TestSuper.test___class___mro.Meta
192 return super().mro()
Dtest_descr.py1842 self.assertEqual(A.mro(), [A, object])
1844 self.assertEqual(B.mro(), [B, A, object])
1846 self.assertEqual(C.mro(), [C, A, object])
1848 self.assertEqual(D.mro(), [D, B, C, A, object])
1853 def mro(cls): member in ClassPropertiesAndMethods.test_altmro.PerverseMetaType
1854 L = type.mro(cls)
1864 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1883 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1894 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
4056 def mro(self): member in ClassPropertiesAndMethods.test_mutable_bases_with_failing_mro.WorkOnce
[all …]
Dtest_typechecks.py16 return any(c in candidates for c in sub.mro())
Dtest_functools.py1840 mro = functools._compose_mro
1843 m = mro(dict, haystack)
1849 m = mro(collections.ChainMap, haystack)
1860 m = mro(collections.defaultdict, [c.Sized, c.Container, str])
1872 m = mro(D, bases)
1886 m = mro(C, haystack)
1987 mro = functools._c3_mro
2003 self.assertEqual(mro(X, abcs=abcs), expected)
2006 self.assertEqual(mro(X, abcs=many_abcs), expected)
/third_party/python/Lib/email/
D_policybase.py104 for c in (c for base in cls.__bases__ for c in base.mro()):
/third_party/python/Lib/test/test_importlib/
Dtest_abc.py947 original_set_data = self.loader.__class__.mro()[1].set_data
949 del self.loader.__class__.mro()[1].set_data
953 self.loader.__class__.mro()[1].set_data = original_set_data
/third_party/icu/icu4c/source/data/misc/
DkeyTypeData.txt337 mro{""}
/third_party/skia/third_party/externals/icu/source/data/misc/
DkeyTypeData.txt340 mro{""}
/third_party/flutter/skia/third_party/externals/icu/source/data/misc/
DkeyTypeData.txt337 mro{""}
/third_party/skia/third_party/externals/icu/source/data/lang/
Dast.txt735 Mroo{"mro"}
923 mroo{"númberos mro"}
Dfi.txt767 Mroo{"mro"}
1024 mroo{"mro-numerot"}
Dbs.txt644 Mroo{"mro pismo"}
/third_party/icu/icu4c/source/data/lang/
Dfi.txt769 Mroo{"mro"}
1026 mroo{"mro-numerot"}
Dast.txt735 Mroo{"mro"}
923 mroo{"númberos mro"}
/third_party/flutter/skia/third_party/externals/icu/source/data/lang/
Dast.txt735 Mroo{"mro"}
923 mroo{"númberos mro"}
Dfi.txt754 Mroo{"mro"}
1000 mroo{"mro-numerot"}

123