[Python-3000] could range be smarter?

Robert Lehmann stargaming at gmail.com
Tue Nov 18 17:30:39 CET 2008


On Tue, 18 Nov 2008 16:01:35 +0100, Owolabi Abdulkareem wrote:

> I just thought may be this is worth considering for future enhancement
> with python's range
> 
> I've you considered trying out something of these nature with range:
> 
> />>> 9000000 in range(20**30)/
> 
> you'll have to wait for sometime to get a response

See http://bugs.python.org/issue1766304 for additional discussion on this 
topic. Optimizations for this would have to be implemented on the C level.

> I don't know if something could be done about this now ( or if it is
> really a good idea) especially when python 3000 is in its rc2 but I
> thought I should say something on this.

I think optimizations can always be applied (though the core developers 
might be busy with caring for release blockers rather than optimizations 
right now).

-- 
Robert "Stargaming" Lehmann



More information about the Python-3000 mailing list