Home
last modified time | relevance | path

Searched refs:mro (Results 1 - 18 of 18) sorted by relevance

/third_party/protobuf/python/
H A 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/test/
H A Dtest_opcache.py113 mro = None variable in TestLoadAttrCache.test_type_descriptor_shadows_attribute_method.Class
116 return Class.mro
371 def mro(): member in TestLoadMethodCache.test_type_descriptor_shadows_attribute_method.Class
375 return Class.mro()
H A Dtest_super.py189 def mro(self): member in TestSuper.test___class___mro.Meta
192 return super().mro()
H A Dtest_descr.py1854 # Testing mro() and overriding it...
1863 self.assertEqual(A.mro(), [A, object])
1865 self.assertEqual(B.mro(), [B, A, object])
1867 self.assertEqual(C.mro(), [C, A, object])
1869 self.assertEqual(D.mro(), [D, B, C, A, object])
1874 def mro(cls): member in .test_altmro.PerverseMetaType
1875 L = type.mro(cls)
1885 def mro(self): member in .test_altmro.X._metaclass
1900 self.fail("devious mro() return not caught")
1904 def mro(sel member in .test_altmro.X._metaclass
1915 def mro(self): global() member in .test_altmro.X._metaclass
4129 def mro(self): global() member in .test_mutable_bases_with_failing_mro.WorkOnce
4137 def mro(self): global() member in .test_mutable_bases_with_failing_mro.WorkAlways
5630 def mro(cls): global() member in MroTest.test_incomplete_set_bases_on_self.M
5645 def mro(cls): global() member in MroTest.test_reent_set_bases_on_base.M
5664 def mro(cls): global() member in MroTest.test_reent_set_bases_on_direct_base.M
5696 def mro(cls): global() member in MroTest.test_reent_set_bases_tp_base_cycle.M
5725 def mro(cls): global() member in MroTest.test_tp_subclasses_cycle_in_update_slots.M
5759 def mro(cls): global() member in MroTest.test_tp_subclasses_cycle_error_return_path.M
5792 def mro(cls): global() member in MroTest.test_incomplete_extend.M
5809 def mro(cls): global() member in MroTest.test_incomplete_super.M
5828 def mro(cls): global() member in MroTest.test_disappearing_custom_mro.M
[all...]
H A Dtest_typechecks.py16 return any(c in candidates for c in sub.mro())
H A Dtest_functools.py1976 mro = functools._compose_mro
1979 m = mro(dict, haystack)
1985 m = mro(collections.ChainMap, haystack)
1996 m = mro(collections.defaultdict, [c.Sized, c.Container, str])
2008 m = mro(D, bases)
2022 m = mro(C, haystack)
2123 mro = functools._c3_mro
2139 self.assertEqual(mro(X, abcs=abcs), expected)
2142 self.assertEqual(mro(X, abcs=many_abcs), expected)
H A Dtest_enum.py468 mro = 9 variable in _EnumTests.test_invalid_names.Wrong
4756 for cls in member.__class__.mro():
/third_party/python/Lib/
H A Dfunctools.py663 Adapted from https://www.python.org/download/releases/2.3/mro/.
757 mro = []
764 mro.append(typ)
770 if subcls not in mro:
771 mro.append(subcls)
772 return _c3_mro(cls, abcs=mro)
784 mro = _compose_mro(cls, registry.keys())
786 for t in mro:
H A Dpydoc.py878 # List the mro, if non-trivial.
879 mro = deque(inspect.getmro(object))
880 if len(mro) > 2:
883 for base in mro:
954 if mro:
955 thisclass = mro.popleft()
1335 # List the mro, if non-trivial.
1336 mro = deque(inspect.getmro(object))
1337 if len(mro) > 2:
1339 for base in mro
[all...]
H A Dinspect.py555 mro = (object,) + getmro(object)
567 mro = ()
578 for base in mro:
631 resulting object does not live anywhere in the class' mro (including
633 dict (found by walking the mro).
640 mro = getmro(cls)
643 class_bases = (cls,) + mro
649 for base in mro:
680 # mro, drop it and search the mro manuall
[all...]
H A D_collections_abc.py79 mro = C.__mro__
81 for B in mro:
H A Denum.py515 invalid_names = set(member_names) & {'mro', ''}
1202 for cls in self.__class__.mro():
/third_party/python/Objects/
H A Dtypeobject.c288 classes, mro, or attributes of the type are altered. in PyType_Modified()
330 classes or mro of the type are altered. in type_mro_modified()
334 super type, or if the type implements its own mro() method. in type_mro_modified()
337 each subclass when their mro is recursively updated. in type_mro_modified()
346 (PyObject *)type, &_Py_ID(mro), &unbound); in type_mro_modified()
351 (PyObject *)&PyType_Type, &_Py_ID(mro), &unbound); in type_mro_modified()
696 in the middle of the loop, for example, through a custom mro(), in mro_hierarchy()
755 /* In case of reentering here again through a custom mro() in type_set_bases()
758 mro_internal only upon returning from the mro(). in type_set_bases()
1542 PyObject *mro; in PyType_IsSubtype() local
2021 mro_check(PyTypeObject *type, PyObject *mro) mro_check() argument
3723 PyObject *mro = type->tp_mro; PyType_GetModuleByDef() local
3772 PyObject *mro = type->tp_mro; find_name_in_mro() local
6225 PyObject *mro = type->tp_mro; type_ready_mro() local
6284 PyObject *mro = type->tp_mro; type_ready_inherit() local
6896 PyObject *mro = type->tp_mro; hackcheck() local
8824 PyObject *mro; super_getattro() local
[all...]
/third_party/python/Modules/
H A D_abc.c750 PyObject *mro = ((PyTypeObject *)subclass)->tp_mro; in _abc__abc_subclasscheck_impl() local
751 assert(PyTuple_Check(mro)); in _abc__abc_subclasscheck_impl()
752 for (pos = 0; pos < PyTuple_GET_SIZE(mro); pos++) { in _abc__abc_subclasscheck_impl()
753 PyObject *mro_item = PyTuple_GET_ITEM(mro, pos); in _abc__abc_subclasscheck_impl()
/third_party/python/Lib/email/
H A D_policybase.py104 for c in (c for base in cls.__bases__ for c in base.mro()):
/third_party/python/Lib/test/test_importlib/
H A Dtest_abc.py960 original_set_data = self.loader.__class__.mro()[1].set_data
962 del self.loader.__class__.mro()[1].set_data
966 self.loader.__class__.mro()[1].set_data = original_set_data
/third_party/python/Include/internal/
H A Dpycore_global_strings.h298 STRUCT_FOR_ID(mro)
H A Dpycore_runtime_init.h921 INIT_ID(mro), \

Completed in 40 milliseconds