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


Groups > comp.lang.python > #3729

Re: mystery string code - help!

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.wtal.de!news.tal.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Dan M <catdude@gmail.com>
Newsgroups comp.lang.python
Subject Re: mystery string code - help!
Date 20 Apr 2011 17:01:54 GMT
Lines 9
Message-ID <918hs2F7m3U2@mid.individual.net> (permalink)
References <801e7013-ac1f-4b77-9783-dfdfd5b86149@cu4g2000vbb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net f5osu4IMhAybvEXS83vnWwFt5QzJyLwj+oY1n90UAY16FYYLrk
Cancel-Lock sha1:f6VW2bPc3QhYCsng87dKqySik6w=
User-Agent Pan/0.133 (House of Butterflies)
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3729

Show key headers only | View raw


> As a newbie Pythoner, I understand [] -1] but would some tell me how
> '::' does its magic?
> 
> Uncle Ben

The -1 is the "stride" or "step" argument. It's described at 
http://docs.python.org/release/2.3.5/whatsnew/section-slices.html

Dan

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


Thread

mystery string code - help! Uncle Ben <ben@greenba.com> - 2011-04-20 09:48 -0700
  Re: mystery string code - help! Dan M <catdude@gmail.com> - 2011-04-20 17:01 +0000
    Re: mystery string code - help! Uncle Ben <ben@greenba.com> - 2011-04-20 17:58 -0700

csiph-web