Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d27df0

Browse files
committed
Correct the description of mixed multiple inheritance: the code
special-cases classic classes, it doesn't do anything about other cases where different metaclasses are involved (except for the trivial case where one metaclass is a subclass of the others). Also note that it's metaclass, not metatype.
1 parent 76f7fe3 commit 3d27df0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ Release date: 16-Nov-2001
44

55
Type/class unification and new-style classes
66

7-
- Restrictions on multiple inheritance from classes with different
8-
metatypes have been relaxed. The only builtin metatypes are one for
9-
classic classes a second for new-style classes, so the primary
10-
visible effect is that this works now:
7+
- Multiple inheritance mixing new-style and classic classes in the
8+
list of base classes is now allowed, so this works now:
119

1210
class Classic: pass
13-
class Mixed(Classic, object): now
11+
class Mixed(Classic, object): pass
1412

1513
The MRO (method resolution order) for each base class is respected
1614
according to its kind, but the MRO for the derived class is computed

0 commit comments

Comments
 (0)