summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-11-22 23:55:50 (GMT)
committerGuido van Rossum <guido@python.org>2003-11-22 23:55:50 (GMT)
commitbaf0f8f24da7a541a403cd9848cebc451beb069d (patch)
tree87e9707d43bbfd74a0cf8213d3c7eb5e4e6d87cc /Misc
parentbfd334a42d35e58369e3a53e16733234e2741975 (diff)
downloadcpython-baf0f8f24da7a541a403cd9848cebc451beb069d.zip
cpython-baf0f8f24da7a541a403cd9848cebc451beb069d.tar.gz
cpython-baf0f8f24da7a541a403cd9848cebc451beb069d.tar.bz2
- When method objects have an attribute that can be satisfied either
by the function object or by the method object, the function object's attribute usually wins. Christian Tismer pointed out that that this is really a mistake, because this only happens for special methods (like __reduce__) where the method object's version is really more appropriate than the function's attribute. So from now on, all method attributes will have precedence over function attributes with the same name.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 30fe4be..f7b1e96 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,15 @@ What's New in Python 2.4 alpha 1?
Core and builtins
-----------------
+- When method objects have an attribute that can be satisfied either
+ by the function object or by the method object, the function
+ object's attribute usually wins. Christian Tismer pointed out that
+ that this is really a mistake, because this only happens for special
+ methods (like __reduce__) where the method object's version is
+ really more appropriate than the function's attribute. So from now
+ on, all method attributes will have precedence over function
+ attributes with the same name.
+
- Critical bugfix, for SF bug 839548: if a weakref with a callback,
its callback, and its weakly referenced object, all became part of
cyclic garbage during a single run of garbage collection, the order