Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35707
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: Wrapping statements in Python in SPSS |
| Date | 2012-12-28 18:07 +0100 |
| Organization | None |
| References | <7fcd8949-c781-425c-b6d2-7d0a634b12b7@googlegroups.com> <mailman.1397.1356711013.29569.python-list@python.org> <596420c8-b88c-4b4d-89d9-a0c22ac7180b@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1399.1356714477.29569.python-list@python.org> (permalink) |
alankrinsky@gmail.com wrote: > I tried placing in the format you suggested and received this error > message: > > END PROGRAM. > Traceback (most recent call last): > File "<string>", line 396, in <module> > ValueError: incomplete format key You seem to have a malformed format string. Example: Correct: >>> "Wonderful %(what)s" % dict(what="Spam") 'Wonderful Spam' Broken (not the missing ')'): >>> "Wonderful %(whats" % dict(what="Spam") Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: incomplete format key
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Wrapping statements in Python in SPSS alankrinsky@gmail.com - 2012-12-28 08:01 -0800
Re: Wrapping statements in Python in SPSS Chris Angelico <rosuav@gmail.com> - 2012-12-29 03:10 +1100
Re: Wrapping statements in Python in SPSS alankrinsky@gmail.com - 2012-12-28 08:43 -0800
Re: Wrapping statements in Python in SPSS Peter Otten <__peter__@web.de> - 2012-12-28 18:07 +0100
Re: Wrapping statements in Python in SPSS Chris Angelico <rosuav@gmail.com> - 2012-12-29 04:12 +1100
Re: Wrapping statements in Python in SPSS alankrinsky@gmail.com - 2012-12-28 09:33 -0800
Re: Wrapping statements in Python in SPSS Mitya Sirenef <msirenef@lightbird.net> - 2012-12-28 12:55 -0500
Re: Wrapping statements in Python in SPSS Mitya Sirenef <msirenef@lightbird.net> - 2012-12-28 13:05 -0500
Re: Wrapping statements in Python in SPSS Mitya Sirenef <msirenef@lightbird.net> - 2012-12-28 13:20 -0500
Re: Wrapping statements in Python in SPSS alankrinsky@gmail.com - 2012-12-28 09:33 -0800
Re: Wrapping statements in Python in SPSS alankrinsky@gmail.com - 2012-12-28 08:43 -0800
csiph-web