diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-11-15 20:02:21 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-11-15 20:02:21 (GMT) |
commit | 76f7fe37bb058647d4c8475a921abbd20b8c2d47 (patch) | |
tree | 682c84d7cdd2b7ec25e76c49ed5039f884ee39a0 /Misc | |
parent | 330bdfe3358daa90e12da47ec25df41bb46b9633 (diff) | |
download | cpython-76f7fe37bb058647d4c8475a921abbd20b8c2d47.zip cpython-76f7fe37bb058647d4c8475a921abbd20b8c2d47.tar.gz cpython-76f7fe37bb058647d4c8475a921abbd20b8c2d47.tar.bz2 |
News about mixing classic and new-style classes in MI.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,9 +1,22 @@ What's New in Python 2.2b2? -XXX Planned XXX Release date: 14-Nov-2001 +Release date: 16-Nov-2001 =========================== Type/class unification and new-style classes +- Restrictions on multiple inheritance from classes with different + metatypes have been relaxed. The only builtin metatypes are one for + classic classes a second for new-style classes, so the primary + visible effect is that this works now: + + class Classic: pass + class Mixed(Classic, object): now + + The MRO (method resolution order) for each base class is respected + according to its kind, but the MRO for the derived class is computed + using new-style MRO rules if any base clase is a new-style class. + This needs to be documented. + - The new builtin dictionary() constructor, and dictionary type, have been renamed to dict. This reflects a decade of common usage. |