+ Create new tricision Login 

Login



Forgot password?

First visit? Sign-up now!

By continuing you accept the Terms & Conditions and Privacy Policy.

time is up

How should we format our strings?

saved
Ideas
Pros and cons
 
Votes
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
 
7

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
 
It's still slower than %
by alecu
2
 
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
2
alecu
rye

Comments

http://www.tricider.com/brainstorming/K0ER