l = range(int(1E9))
BartC
bc at freeuk.com
Sat May 2 15:51:57 EDT 2015
On 02/05/2015 20:15, Mark Lawrence wrote:
> On 02/05/2015 19:34, BartC wrote:
>> OK, so it's the programmer's fault if as fundamental a concept as a
>> for-loop ranging over integers is implemented inefficiently. He has to
>> transform it into high-level terms, or has to reconstruct it somehow
>> using a while-loop and an incrementing loop index.
> I give up.
So do I, I think, if no-one is willing to admit that the original way of
implementing range() was a glaring mistake.
--
Bartc
More information about the Python-list
mailing list