Message76624
I think *both* behaviors are wrong, the 3.0 one is backwards
incompatible, and the 2.7 one is inconsistent (accepting MyInt if it's <
32 bits, rejecting it for > 64 bits).
For our particular use case, it is very annoying to not be able to use
non-ints. It goes against the principle duck typing by simply defining
the __int__ and __index__ methods. |
|
Date |
User |
Action |
Args |
2008-11-29 20:45:38 | robertwb | set | recipients:
+ robertwb, rhettinger, belopolsky, christian.heimes, josm, zanella, akitada |
2008-11-29 20:45:37 | robertwb | set | messageid: <1227991537.71.0.00164645391464.issue1533@psf.upfronthosting.co.za> |
2008-11-29 20:45:36 | robertwb | link | issue1533 messages |
2008-11-29 20:45:36 | robertwb | create | |
|