From: Tim Peters Date: Sun, 18 Feb 2001 08:28:33 +0000 (+0000) Subject: Bug #132921: None treated differently in cmp() / sort() in 2.1a2. X-Git-Tag: v2.1b1~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=144958552974edb92c6d6bfce09eed54d78de045;p=thirdparty%2FPython%2Fcpython.git Bug #132921: None treated differently in cmp() / sort() in 2.1a2. Just mentioning that in the NEWS file. --- diff --git a/Misc/NEWS b/Misc/NEWS index cf4e6e36b654..8c04875ac820 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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