[Tutor] for loop for long numbers

eryksun eryksun at gmail.com
Tue Aug 4 05:20:18 CEST 2015


On Mon, Aug 3, 2015 at 8:50 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> If you have a 64-bit operating system, you can use a 64-bit version of
> Python, and the limit will be something like 2**63 - 1 or so. I can't
> test this myself, as I have a 32-bit system like you.

A notable exception to the above claim is 64-bit Windows, which uses a
32-bit C long that limits xrange to 2**31 - 1.


More information about the Tutor mailing list