mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Added items about significant subclass bugfixes.
This commit is contained in:
parent
4f467e8057
commit
1f47d11ff2
1 changed files with 10 additions and 0 deletions
10
Misc/NEWS
10
Misc/NEWS
|
@ -3,6 +3,16 @@ What's New in Python 2.2a4?
|
||||||
|
|
||||||
Core
|
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
|
Library
|
||||||
|
|
||||||
- operator.indexOf() (PySequence_Index() in the C API) now works with any
|
- operator.indexOf() (PySequence_Index() in the C API) now works with any
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue