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


Groups > comp.lang.python > #3757

Re: mystery string code - help!

From Uncle Ben <ben@greenba.com>
Newsgroups comp.lang.python
Subject Re: mystery string code - help!
Date 2011-04-20 17:58 -0700
Organization http://groups.google.com
Message-ID <0184ced2-af68-4e2a-b577-eea8055f10f7@p16g2000vbi.googlegroups.com> (permalink)
References <801e7013-ac1f-4b77-9783-dfdfd5b86149@cu4g2000vbb.googlegroups.com> <918hs2F7m3U2@mid.individual.net>

Show all headers | View raw


On Apr 20, 1:01 pm, Dan M <catd...@gmail.com> wrote:
> > 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 athttp://docs.python.org/release/2.3.5/whatsnew/section-slices.html
>
> Dan

Very helpful!

Ben

Back to comp.lang.python | Previous | NextPrevious 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