Message 76624 - Python tracker (original) (raw)
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.