[Python-ideas] [Python-Dev] Inclusive Range (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Oct 5 17:02:12 CEST 2010
- Previous message: [Python-ideas] [Python-Dev] Inclusive Range
- Next message: [Python-ideas] [Python-Dev] Inclusive Range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-ideas] [Python-Dev] Inclusive Range
- Next message: [Python-ideas] [Python-Dev] Inclusive Range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]