[EMAIL PROTECTED] wrote:
> "{0} asks {1} if he is happy to see {1}".format('Brett', 'Skip',
> 'Christian')
>
> ^^^ whoops
This kind of mistake is easy to spot if the format
string is short.
If it's not short, it would be better to use names:
"{asker} asks {askee} if he is happy to see {friend}".format(
asker = 'Brett', askee = 'Skip', friend = 'Christian')
--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com