[issue10873] String formatting example invalid

2011-01-09 Thread Ashwin Purohit
New submission from Ashwin Purohit puro...@gmail.com: 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

[issue10873] String formatting example invalid

2011-01-09 Thread Ashwin Purohit
Ashwin Purohit puro...@gmail.com added the comment: Yes, apologies (I was using 2.6). On Jan 9, 2011 5:52 AM, SilentGhost rep...@bugs.python.org wrote: SilentGhost ghost@gmail.com added the comment: Works as advertised for me. Unless more information is added, it looks like an invalid