1. Armin Rigo
  2. cpython-withatomic

Commits

Guido van Rossum  committed 4540e41

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]

  • Participants
  • Parent commits f997ded
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_b1.py

View file
     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'