Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10605
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python': 0.08; 'ah,': 0.09; 'length.': 0.09; 'list)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'rejected.': 0.09; 'types:': 0.09; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'generated,': 0.16; 'iterator,': 0.16; 'length,': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:mindspring.com': 0.16; 'received:wlfraed': 0.16; 'them.)': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'xrange': 0.16; "aren't": 0.22; 'slice': 0.23; 'index': 0.25; 'url:home': 0.25; 'suggestion': 0.26; "i'm": 0.27; 'objects': 0.28; 'lee': 0.28; 'sat,': 0.28; 'turned': 0.30; '3.x': 0.30; 'confident': 0.30; 'recall': 0.30; 'subject:?': 0.31; 'seem': 0.31; 'proposed': 0.32; 'to:addr:python-list': 0.34; 'header:X-Complaints-To:1': 0.34; 'nobody': 0.34; "can't": 0.34; 'subject:What': 0.35; 'pretty': 0.35; 'probably': 0.35; 'regular': 0.36; 'charset:us-ascii': 0.36; 'sequence': 0.37; 'but': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'returning': 0.38; 'steven': 0.38; 'something': 0.38; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'did': 0.40; 'full': 0.63; 'dennis': 0.77; 'else...': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| Subject | Re: What is xrange? |
| Date | Sat, 30 Jul 2011 17:06:28 -0700 |
| Organization | > Bestiaria Support Staff < |
| References | <j0v23e$g6o$1@speranza.aioe.org> <4e335ce4$0$29977$c3e8da3$5496439d@news.astraweb.com> <mailman.1654.1312025049.1164.python-list@python.org> <4e33ecc4$0$29987$c3e8da3$5496439d@news.astraweb.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | user-3cf847k.dsl.mindspring.com |
| X-Newsreader | Forte Agent 3.3/32.846 |
| X-No-Archive | YES |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1679.1312070806.1164.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1312070806 news.xs4all.nl 23873 [2001:888:2000:d::a6]:44499 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:10605 |
Show key headers only | View raw
On Sat, 30 Jul 2011 21:36:41 +1000, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> declaimed the following in
gmane.comp.python.general:
> Probably because nobody thought about it, but if it had been proposed to
> change xrange into an iterator, I'm pretty confident that the suggestion
> would have been rejected. xrange objects might be lazily generated, but
> they're also sequence types: you can get their length, and you can index
> them. (However you can't slice them.) Iterators are not sequence types:
> they aren't indexable and you can't get their length.
>
Ah, but what did they change range() into -- I seem to recall
reading the Python 3.x turned the regular range() into something else...
(from Python <3.x returning a full list)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What is xrange? Billy Mays <noway@nohow.com> - 2011-07-29 15:36 -0400
Re: What is xrange? harrismh777 <harmar@member.fsf.org> - 2011-07-29 14:47 -0500
Re: What is xrange? Thomas Jollans <t@jollybox.de> - 2011-07-29 22:31 +0200
Re: What is xrange? Jerry Hill <malaclypse2@gmail.com> - 2011-07-29 16:36 -0400
Re: What is xrange? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-30 11:22 +1000
Re: What is xrange? Brian Blais <bblais@bryant.edu> - 2011-07-30 06:23 -0400
Re: What is xrange? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-30 21:36 +1000
Re: What is xrange? Brian Blais <bblais@bryant.edu> - 2011-07-30 09:46 -0400
Re: What is xrange? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-07-30 17:06 -0700
Re: What is xrange? Chris Angelico <rosuav@gmail.com> - 2011-07-31 01:10 +0100
Re: What is xrange? Ethan Furman <ethan@stoneleaf.us> - 2011-07-30 23:42 -0700
Re: What is xrange? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-07-31 12:18 +1200
csiph-web