Message 100261 - Python tracker (original) (raw)
I'd be open to re-allowing use of int (and long) consistently for all integer packing codes in 2.7, as a temporary measure; I'd really prefer not to allow this for 3.x.
What would make more sense, IMO, would be to allow use of the index method (in both 2.7 and 3.x) to convert custom non-integer classes to integers before packing; this is supposed to be the modern approach to creating integer-like classes that can be used as integers (e.g., in list indices). Andreas, would this work for you, or do you need to be able to use int and/or long?
Re-opening while we're discussing this.