New-style string formatting (Was: Re: Tuple "detection")
Daniel Dittmar
daniel.dittmar at sap.com
Tue May 20 12:49:33 EDT 2003
Gerrit Holl wrote:
> is not to do string interpolation, but to simply change the syntax
I guess you meant extend, because removing % for strings would simply break
too much
> because the '%' is redundant; it's a much smaller change:
redundant only for the common case of
"string %s %s" % (value1, value2)
but not for
"string %s %s" % db.getRow ()
and not for the also quite common case of
"string %(name1)s" % locals ()
Daniel
More information about the Python-list
mailing list