Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3757
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!newspump.sol.net!news-out.readnews.com!transit3.readnews.com!postnews.google.com!p16g2000vbi.googlegroups.com!not-for-mail |
|---|---|
| From | Uncle Ben <ben@greenba.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: mystery string code - help! |
| Date | Wed, 20 Apr 2011 17:58:14 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 14 |
| Message-ID | <0184ced2-af68-4e2a-b577-eea8055f10f7@p16g2000vbi.googlegroups.com> (permalink) |
| References | <801e7013-ac1f-4b77-9783-dfdfd5b86149@cu4g2000vbb.googlegroups.com> <918hs2F7m3U2@mid.individual.net> |
| NNTP-Posting-Host | 67.252.22.57 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1303347494 20733 127.0.0.1 (21 Apr 2011 00:58:14 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Thu, 21 Apr 2011 00:58:14 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | p16g2000vbi.googlegroups.com; posting-host=67.252.22.57; posting-account=15T5jAkAAACpO9KgK0Ue212ywoAPQtp7 |
| User-Agent | G2/1.0 |
| X-HTTP-UserAgent | Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MAGW; Tablet PC 2.0; .NET4.0C; .NET4.0E),gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:3757 |
Show key headers only | 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 | Next — Previous in thread | Find similar
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