Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73732
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Newbie coding question - format error |
| Date | 2014-06-29 10:47 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-9D2BA8.10472729062014@news.panix.com> (permalink) |
| References | <CAHXoDSAFHbPcU+gwvJPsairQMJmFEf1B6Sn2gw3_OHT1_EPw8A@mail.gmail.com> <mailman.11326.1404051003.18130.python-list@python.org> |
In article <mailman.11326.1404051003.18130.python-list@python.org>,
Sibylle Koczian <nulla.epistola@web.de> wrote:
> Am 29.06.2014 09:06, schrieb Martin S:
> > IndexError: tuple index out of range
> >
>
> {0} ... {3} are just placeholders in your format strings, they can't
> exist outside of them. And you can't put more placeholders into the
> format string than you've got values to put into them. That's what the
> IndexError is about.
This seems like a confusing error message to me. I've opened
http://bugs.python.org/issue21879 on this.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Newbie coding question - format error Sibylle Koczian <nulla.epistola@web.de> - 2014-06-29 16:09 +0200 Re: Newbie coding question - format error Roy Smith <roy@panix.com> - 2014-06-29 10:47 -0400
csiph-web