[Python-ideas] [Python-Dev] Inclusive Range

Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Oct 5 17:02:12 CEST 2010


On Tue, Oct 5, 2010 at 10:47 AM, Masklinn <masklinn at masklinn.net> wrote:
..
>>  Why range(2**300)
>> succeeds, but len(range(2**300)) raises OverflowError?
> The former overflows in Python 2. It doesn't in Python 3 due to `range` being an iterable not a list.

This particular wart is the subject of issue 2690.

http://bugs.python.org/issue2690



More information about the Python-ideas mailing list