]> granicus.if.org Git - python/commitdiff
Added items about significant subclass bugfixes.
authorTim Peters <tim.peters@gmail.com>
Wed, 12 Sep 2001 23:40:29 +0000 (23:40 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 12 Sep 2001 23:40:29 +0000 (23:40 +0000)
Misc/NEWS

index b282559bf5a57aa5f5277c0bdadc992cd318ee74..518e809e3c6e315e6b13f60a43f2015c2f3e7918 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3,6 +3,16 @@ What's New in Python 2.2a4?
 
 Core
 
+- In 2.2a3, hash() applied to an instance of a subclass of str or unicode
+  always returned 0.  This has been repaired.
+
+- In 2.2a3, an operation on an instance of a subclass of an immutable type
+  (int, long, float, complex, tuple, str, unicode), where the subtype
+  didn't override the operation (and so the operation was handled by the
+  builtin type), could return that instance instead a value of the base
+  type.  For example, if s was of a str sublass type, s[:] returned s
+  as-is.  Now it returns a str with the same value as s.
+
 Library
 
 - operator.indexOf() (PySequence_Index() in the C API) now works with any