[Python-checkins] CVS: python/dist/src/Misc NEWS,1.312,1.313

Tim Peters tim_one@users.sourceforge.net
2001年11月15日 12:02:24 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv9141/python/Misc
Modified Files:
	NEWS 
Log Message:
News about mixing classic and new-style classes in MI.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.312
retrieving revision 1.313
diff -C2 -d -r1.312 -r1.313
*** NEWS	2001年11月13日 23:11:19	1.312
--- NEWS	2001年11月15日 20:02:21	1.313
***************
*** 1,7 ****
 What's New in Python 2.2b2?
! XXX Planned XXX Release date: 14-Nov-2001
 ===========================
 
 Type/class unification and new-style classes
 
 - The new builtin dictionary() constructor, and dictionary type, have
--- 1,20 ----
 What's New in Python 2.2b2?
! 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

AltStyle によって変換されたページ (->オリジナル) /