Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'think,': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'language.': 0.14; 'iterating': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'url:annotate': 0.16; 'language': 0.16; 'wrote:': 0.18; 'implementing': 0.19; 'header :User-Agent:1': 0.23; 'looks': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'url:python': 0.33; 'but': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'issue': 0.38; 'anything': 0.39; 'extremely': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'information,': 0.61; 'save': 0.62; 'our': 0.64; 'charset:windows-1252': 0.65; 'here': 0.66; 'url:c': 0.67; 'nobody': 0.68; 'url:cpython': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: l = range(int(1E9)) Date: Sat, 02 May 2015 23:26:00 +0100 References: <87k2wtvbx1.fsf@Equus.decebal.nl> <_M61x.477467$Ek.357048@fx07.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-219-104.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430605605 news.xs4all.nl 2831 [2001:888:2000:d::a6]:45613 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89808 On 02/05/2015 22:40, Jon Ribbens wrote: > On 2015-05-02, BartC 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