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 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> 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 > 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