|
|
|
Python Language : Save the operator % ! |
To: Python Dev Team (and guido, of course !)If you think that the old string operator '%' shouldn't disappear from the next releases of Python language, please let us known !
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 !
Sincerely,
The Python Language : Save the operator % ! Petition to Python Dev Team (and guido, of course !) was created by Me, myself, and maybe some of the python community :) and written by Master of chaussette (cho7kipu@gmail.com). This petition is hosted here at www.PetitionOnline.com as a public service. There is no endorsement of this petition, express or implied, by Artifice, Inc. or our sponsors. For technical support please use our simple Petition Help form.
Send Petition to a Friend - Petition FAQ - Start a Petition - Contributions - Privacy - Media Kit
| PetitionOnline - DesignCommunity - ArchitectureWeek - Great Buildings - Archiplanet - Search | |
| http://www.PetitionOnline.com/PyString/petition.html | © 1999-2007 Artifice, Inc. - All Rights Reserved. |