diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-02-18 08:28:33 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-02-18 08:28:33 (GMT) |
commit | 144958552974edb92c6d6bfce09eed54d78de045 (patch) | |
tree | f122e8bb0f0251405fbfa988e0c9649384559ef0 /Misc | |
parent | 7855aba6bb9b9a35af9ea3b7992f63b29283fac9 (diff) | |
download | cpython-144958552974edb92c6d6bfce09eed54d78de045.zip cpython-144958552974edb92c6d6bfce09eed54d78de045.tar.gz cpython-144958552974edb92c6d6bfce09eed54d78de045.tar.bz2 |
Bug #132921: None treated differently in cmp() / sort() in 2.1a2.
Just mentioning that in the NEWS file.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -183,6 +183,13 @@ Core language, builtins, and interpreter complex numbers except for equality, I hope that this doesn't break too much code. +- The outcome of comparing non-numeric objects of differerent types is + not defined by the language, other than that it's arbitrary but + consistent (see the Reference Manual). An implementation detail changed + in 2.1a1 such that None now compares less than any other object. Code + relying on this new behavior (like code that relied on the previous + behavior) does so at its own risk. + - Functions and methods now support getting and setting arbitrarily named attributes (PEP 232). Functions have a new __dict__ (a.k.a. func_dict) which hold the function attributes. Methods get |