5 Oct 2010 17:02
Re: [Python-Dev] Inclusive Range
On Tue, Oct 5, 2010 at 10:47 AM, Masklinn <masklinn@...> 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
RSS Feed