Message125838
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. |
|
Date |
User |
Action |
Args |
2011-01-09 12:20:44 | doagie | set | recipients:
+ doagie, docs@python |
2011-01-09 12:20:44 | doagie | set | messageid: <1294575644.02.0.857949444366.issue10873@psf.upfronthosting.co.za> |
2011-01-09 12:20:38 | doagie | link | issue10873 messages |
2011-01-09 12:20:38 | doagie | create | |
|