This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doagie
Recipients doagie, docs@python
Date 2011-01-09.12:20:38
SpamBayes Score 6.1613487e-06
Marked as misclassified No
Message-id <1294575644.02.0.857949444366.issue10873@psf.upfronthosting.co.za>
In-reply-to
Content
Your example on page http://docs.python.org/tutorial/inputoutput.html is outdated and won't work in Python 2.7:

Basic usage of the str.format() method looks like this:

>>> print 'We are the {} who say "{}!"'.format('knights', 'Ni')
We are the knights who say "Ni!"


Now, all brackets have to have a numeric or keyword argument.
History
Date User Action Args
2011-01-09 12:20:44doagiesetrecipients: + doagie, docs@python
2011-01-09 12:20:44doagiesetmessageid: <1294575644.02.0.857949444366.issue10873@psf.upfronthosting.co.za>
2011-01-09 12:20:38doagielinkissue10873 messages
2011-01-09 12:20:38doagiecreate