l = range(int(1E9))

Mark Lawrence breamoreboy at yahoo.co.uk
Sat May 2 18:26:00 EDT 2015


On 02/05/2015 22:40, Jon Ribbens wrote:
> On 2015年05月02日, BartC <bc at freeuk.com> wrote:
>> So do I, I think, if no-one is willing to admit that the original way of
>> implementing range() was a glaring mistake.
>> I think the issue is that nobody else here thinks the "original way"
> of iterating was to use range(), for anything other than extremely
> small ranges.
>> For information, it looks like xrange() was added on 26 Oct 1993,
> which pre-dates Python 1.0.
>
No chance, or so I thought, but to save others from looking it up 
https://hg.python.org/cpython/annotate/89e1e5d9ccbf/Python/bltinmodule.c
-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /