diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-12 23:40:29 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-12 23:40:29 (GMT) |
commit | 1f47d11ff24bf1796a9a81ee6dcd07705acc407d (patch) | |
tree | 44c908af2d908bd5b901d23521c820ed0977e248 /Misc | |
parent | 4f467e805726f721cc8226ac1394246f03a10d62 (diff) | |
download | cpython-1f47d11ff24bf1796a9a81ee6dcd07705acc407d.zip cpython-1f47d11ff24bf1796a9a81ee6dcd07705acc407d.tar.gz cpython-1f47d11ff24bf1796a9a81ee6dcd07705acc407d.tar.bz2 |
Added items about significant subclass bugfixes.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |