mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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]
This commit is contained in:
parent
0871e9315e
commit
7f9b5e014b
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue