[Python-Dev] Int FutureWarnings and other 2.4 TODOs (original) (raw)

Jeremy Fincher fincher.8 at osu.edu
Wed Dec 3 12:15:17 EST 2003


On Wednesday 03 December 2003 11:10 am, Guido van Rossum wrote:

So the question is, does long have operations that int doesn't have? And if so, why can't those operations be added to int? And if there's a reason, is it good enough?

Taking into account their difference in representation, a long can support 1<<32, but an int can't.

I'm not saying that the "proper" (long) behavior can't be unified into a single type, just giving an example of an operation long supports but int doesn't.

Jeremy



More information about the Python-Dev mailing list