diff options
author | Guido van Rossum <guido@python.org> | 2001-01-22 19:30:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-22 19:30:07 (GMT) |
commit | 7f9b5e014ba2f75c76c2564b2f46367fccf813d0 (patch) | |
tree | a48383eab19d5a97ced68bf6e0bc598dc7d47c3b /Lib | |
parent | 0871e9315ec2395775f600baedacdcbcd4cb5f5c (diff) | |
download | cpython-7f9b5e014ba2f75c76c2564b2f46367fccf813d0.zip cpython-7f9b5e014ba2f75c76c2564b2f46367fccf813d0.tar.gz cpython-7f9b5e014ba2f75c76c2564b2f46367fccf813d0.tar.bz2 |
OK, changed my mind once more on this. The comparison hierarchy is
now
None < all numeric types < all other types
so that once again
map(max, Squares(3), Squares(2))
equals
[0, 1, 4]
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_b1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index 97462b1..ea09d0b 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -483,7 +483,7 @@ if map(int, Squares(10)) != [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]: raise TestFailed, 'map(int, Squares(10))' if map(None, Squares(3), Squares(2)) != [(0,0), (1,1), (4,None)]: raise TestFailed, 'map(None, Squares(3), Squares(2))' -if map(max, Squares(3), Squares(2)) != [0, 1, None]: +if map(max, Squares(3), Squares(2)) != [0, 1, 4]: raise TestFailed, 'map(max, Squares(3), Squares(2))' print 'max' |