[issue10873] String formatting example invalid
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 are the knights who say Ni! Now, all brackets have to have a numeric or keyword argument. -- assignee: d...@python components: Documentation messages: 125838 nosy: doagie, d...@python priority: normal severity: normal status: open title: String formatting example invalid type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10873] String formatting example invalid
SilentGhost ghost@gmail.com added the comment: Works as advertised for me. Unless more information is added, it looks like an invalid issue. -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10873] String formatting example invalid
Eric Smith e...@trueblade.com added the comment: This feature was added in 2.7 (and 3.1, I think). If the numeric indices are not specified, they take the args in order. -- assignee: d...@python - eric.smith nosy: +eric.smith resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10873] String formatting example invalid
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 issue. -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python... -- Added file: http://bugs.python.org/file20330/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10873 ___pYes, apologies (I was using 2.6)./p pblockquote type=citeOn Jan 9, 2011 5:52 AM, quot;SilentGhostquot; lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt; wrote:brbrbr SilentGhost lt;a href=mailto:ghost@gmail.com;ghost@gmail.com/agt; added the comment:br br Works as advertised for me. Unless more information is added, it looks like an invalid issue.br br --br nosy: +SilentGhostbr pfont color=#500050 ___ Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt; lt;a href=http://bugs.python.;http://bugs.python./a../font/p/blockquote/p ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10873] String formatting example invalid
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file20330/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com