Message92927
Also, it would be good to add a test or two for non-integers, e.g. to make
explicit that the following behaviour hasn't changed:
>>> class C:
... def __int__(self): return 3
... def __index__(self): return 5
... def __eq__(self, other): return other == 4
...
>>> C() in range(0, 10, 2)
True |
|
Date |
User |
Action |
Args |
2009-09-21 09:49:34 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, belopolsky, pitrou, stargaming, lehmannro, hpesoj |
2009-09-21 09:49:34 | mark.dickinson | set | messageid: <1253526574.68.0.0502999900691.issue1766304@psf.upfronthosting.co.za> |
2009-09-21 09:49:33 | mark.dickinson | link | issue1766304 messages |
2009-09-21 09:49:33 | mark.dickinson | create | |
|