Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...3(C1, C2): __metaclass__ = M3 class D(C2, C3): __metaclass__ = M1 class C4: __metaclass__ = M4 class E(C3, C4): pass For class C2, the constraint is satisfied because M2 is a subclass of M1. For class C3, it is satisfied because M3 is a subclass of both M1 and M2. For class D, the explicit metaclass M1 is not a subclass of the base metaclasses (M2, M3), but choosing M3 satisfies the constraint, so D.__class__ is M3. However, class E is an error: the two metacl...
...3, 728656, 729096, 729103, 729293, 729297, 729300, 729317, 729395, 729622, 729817, 730170, 730296, 730594, 730685, 730826, 730963, 731209, 731403, 731504, 731514, 731626, 731635, 731643, 731644, 731644, 731689, 732124, 732143, 732234, 732284, 732284, 732479, 732761, 732783, 732951, 733667, 733781, 734118, 734231, 734869, 735051, 735293, 735527, 735613, 735694, 736962, 736962, 737970, 738066, 739313, 740055, 740234, 740301, 741806, 742126, 742741, 742860, 742860, 742911, 744041, 744104, 744238, 7...
If you didn't find what you need, try your search in the Python language documentation.