[Python-checkins] CVS: python/dist/src/Misc NEWS,1.269,1.270

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 04 Oct 2001 12:46:08 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv13410/Misc

Modified Files:
	NEWS 
Log Message:
Make new classes dynamic by default.

Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.269
retrieving revision 1.270
diff -C2 -d -r1.269 -r1.270
*** NEWS	2001/10/04 10:19:00	1.269
--- NEWS	2001/10/04 19:46:06	1.270
***************
*** 5,8 ****
--- 5,18 ----
  Type/class unification and new-style classes
  
+ - New-style classes are now dynamic by default.  Previous, they were
+   static (meaning class attributes could not be assigned to) and
+   dynamic classes had to be requested by adding __dynamic__ = 1 to the
+   body of the class or to the module.  Static classes are faster than
+   dynamic classes, but dynamic classes are now at most 50% slower than
+   static classes; previously, they could be up to 10x slower.  (This
+   was accomplished by making dynamic classes faster, not by making
+   static classes slower. :-)  Note that according to one benchmark,
+   static classes are about the same speed as classic classes.
+ 
  - C.__doc__ now works as expected for new-style classes (in 2.2a4 it
    always returned None, even when there was a class docstring).