Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48257

Re: Newbie: The philosophy behind list indexes

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'explanation': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'iterating': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'stopping': 0.24; 'url:edu': 0.26; 'header:X -Complaints-To:1': 0.27; 'chris': 0.29; 'subject:list': 0.30; 'lists?': 0.31; '14,': 0.36; 'behind': 0.37; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'pdf': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'subject:The': 0.64; 'url:pdf': 0.68; 'rebert': 0.84; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: Newbie: The philosophy behind list indexes
Date Sat, 15 Jun 2013 08:42:48 +0200
Organization None
References <f0ef08bc-464d-4d36-b285-ebc3c7ffb337@googlegroups.com> <CAMZYqRTy4KA1W4EzJd=-_RHm3otfoEgW6A77GwZVrP3A4iuv4w@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p50848a16.dip0.t-ipconnect.de
User-Agent KNode/4.7.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.3361.1371278743.3114.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371278743 news.xs4all.nl 15994 [2001:888:2000:d::a6]:53844
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48257

Show key headers only | View raw


Chris Rebert wrote:

> On Jun 14, 2013 10:26 PM, <ian.l.cameron@gmail.com> wrote:

>> What is the thinking behind stopping 'one short' when slicing or
>> iterating through lists?

> I find Dijkstra's explanation rather convincing:
> http://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831.html

This is the only case where I prefer the pdf ;)

http://www.cs.utexas.edu/~EWD/ewd08xx/EWD831.PDF

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Newbie: The philosophy behind list indexes ian.l.cameron@gmail.com - 2013-06-14 22:21 -0700
  Re: Newbie: The philosophy behind list indexes Chris Rebert <clp2@rebertia.com> - 2013-06-14 22:35 -0700
  Re: Newbie: The philosophy behind list indexes Chris Angelico <rosuav@gmail.com> - 2013-06-15 15:49 +1000
  Re: Newbie: The philosophy behind list indexes Peter Otten <__peter__@web.de> - 2013-06-15 08:42 +0200
  Re: Newbie: The philosophy behind list indexes John Ladasky <john_ladasky@sbcglobal.net> - 2013-06-15 00:19 -0700
  Re: Newbie: The philosophy behind list indexes Olive <not0read0765@yopmail.com> - 2013-06-15 09:44 +0200
  Re: Newbie: The philosophy behind list indexes ian.l.cameron@gmail.com - 2013-06-19 13:46 -0700

csiph-web