2008/6/4 Antoine Pitrou <[EMAIL PROTECTED]>:
> Michael Foord <fuzzyman <at> voidspace.org.uk> writes:
>> Simple string formatting with %s and a single object or a tuple meets
>>  >90% of my string formatting needs.
>
> Not to mention that e.g. "%r" % s is much simpler than "{0!r}".format(s)
> (if I got the format spec right).

repr(s) is simpler still, and doesn't break if s is a tuple :-)

Paul.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to