Python Language : Save the operator \% !
Sign Now
Start from python 3.0, the new best practice will be to use string.format instead, which is more powerful (it's a fact) but also more _verbose_
For example,
before :
print "Hello, \%s !" \% name
now :
print ("Hello, {0} !".format(name))
We can see that, for a simple print function, the new string.format is boring to type. The brackets are not easily found by our fingers on azerty keyboard (altgr + [5/+]), and the resulting expression is longer.
So even if the new string.format is awsome, I really think that the old \% operator have some interest, it's a good syntaxic sugar (so are the functions decorators)
The \% operator will start to be deprecated in the python 3.1.
Please, help us to save the \% operator !
If you already have an account please sign in, otherwise register an account for free then sign the petition filling the fields below.
Email and password will be your account data, you will be able to sign other petitions after logging in.
Continue with Google