summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-12-03 00:54:52 (GMT)
committerGuido van Rossum <guido@python.org>2001-12-03 00:54:52 (GMT)
commit4b80085dddba9cfb06aa3ee74b65371a209c5ab0 (patch)
tree95e782fe325396cc17ac53a146082044f3b6d873 /Misc
parentfaad5ad59005d16080aa79b593fede25c6a7457c (diff)
downloadcpython-4b80085dddba9cfb06aa3ee74b65371a209c5ab0.zip
cpython-4b80085dddba9cfb06aa3ee74b65371a209c5ab0.tar.gz
cpython-4b80085dddba9cfb06aa3ee74b65371a209c5ab0.tar.bz2
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__.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1964d61..69f80ee 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -4,6 +4,12 @@ XXX Release date: ??-Dec-2001 XXX
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
Extension modules