[Python-checkins] CVS: python/dist/src/Misc NEWS,1.322,1.323

Guido van Rossum gvanrossum@users.sourceforge.net
Sun, 02 Dec 2001 16:54:54 -0800


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

Modified Files:
	NEWS 
Log Message:
Fix for SF bug #485678.

slot_tp_descr_set(): When deleting an attribute described by a
descriptor implemented in Python, the descriptor's __del__ method is
called by the slot_tp_descr_set dispatch function.  This is bogus --
__del__ already has a different meaning. Renaming this use of __del__
is renamed to __delete__.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.322
retrieving revision 1.323
diff -C2 -d -r1.322 -r1.323
*** NEWS	2001/12/02 12:26:03	1.322
--- NEWS	2001/12/03 00:54:52	1.323
***************
*** 5,8 ****
--- 5,14 ----
  Type/class unification and new-style classes
  
+ - The "delete attribute" method of descriptor objects is called
+   __delete__, not __del__.  In previous releases, it was mistakenly
+   called __del__, which created an unfortunate overloading condition
+   with finalizers.  (The "get attribute" and "set attribute" methods
+   are still called __get__ and __set__, respectively.)
+ 
  Core and builtins