String concatenation vs. string formatting
Dan Stromberg
drsalists at gmail.com
Fri Jul 8 19:02:25 EDT 2011
On Fri, Jul 8, 2011 at 3:50 PM, Ben Finney <ben+python at benfinney.id.au>wrote:
> * The ‘%’ string formatting operator is superseded in current Python
> versions by the more flexible ‘format’ method of string objects.
>
AFAIK, % formatting is the only kind of formatting that works portably
across all of CPythons 2.5, 2.6, 2.7, 3.0, 3.1, 3.2; Pypy and Jython.
So I'm still writing new code using %.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110708/84222ff3/attachment-0001.html>
More information about the Python-list
mailing list