From 7f9b5e014ba2f75c76c2564b2f46367fccf813d0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 22 Jan 2001 19:30:07 +0000 Subject: 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] --- Lib/test/test_b1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v0.12