How should we format our strings?
saved
Use the % string interpolation operator
by alecu
It *will not* be deprecated on py3k
by alecu
1
Most of our code already uses it
by alecu
1
%(name)s is arguably as clean looking as .format()
by Sidnei Silva
2
Requires types to be specified in the format string.
by rye
1
beuno, Sidnei Silva, pedronis and 4 more
Use the .format() string interpolation method
by alecu
It's the new recommended way
by alecu
2
It arguably looks cleaner
by alecu
6
Incompatible with older pythons
by Thisfred
2
Was already supported in Lucid
by alecu
2
We don't build a template library, so speed should not matter to us
by alecu
1
"{name} is better".format(name="format")
by rye
1
http://www.tricider.com/brainstorming/K0ER