int vs long

Paul Rubin http
Sun Jun 3 05:18:02 CEST 2007

Dan Bishop <danb_83 at> writes:
> Note that recent versions of Python automatically promote the results
> of integer arithmetic to long if necessary, so the distinction is less
> relevant than it used to be.

Note however that even in recent versions, there are still parts of
Python that get stuck at sys.maxint, for example the enumerate function.

More information about the Python-list mailing list