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


Groups > comp.lang.python > #48257

Re: Newbie: The philosophy behind list indexes

From Peter Otten <__peter__@web.de>
Subject Re: Newbie: The philosophy behind list indexes
Date 2013-06-15 08:42 +0200
Organization None
References <f0ef08bc-464d-4d36-b285-ebc3c7ffb337@googlegroups.com> <CAMZYqRTy4KA1W4EzJd=-_RHm3otfoEgW6A77GwZVrP3A4iuv4w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3361.1371278743.3114.python-list@python.org> (permalink)

Show all headers | 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