Re:Improving your (Python) code with modern idioms
by briancurtin on Tuesday May 08, 2012 @10:20AM
(#3943720)
The printf-style is really only deprecated in the sense that most of the core devs would prefer string.format. There's no formal deprecation policy in place to remove the printf-style. The standard library still uses printf-style, the documentation still uses printf-style, and printf-style isn't going away any time soon, if ever.
Many core contributors have sided with printf-style and the community has spoken up a few times about wanting printf-style to stay around. I don't think we'll ever reach a majority siding with removal of it.
A few other PEP 3101 examples worth mentioning (and their printf equivalents):
Imho, they really are quite flexible and allow for more elegant constructs when needed. Calling them 'vastly inferior' is unwarranted, especially since using them is not mandatory in any way.[1] http://www.python.org/dev/peps/pep-3101/
[2] http://docs.python.org/release/3.0.1/whatsnew/3.0.html#chang...
[3] http://docs.python.org/release/3.1.5/library/string.html#for...
[4] http://docs.python.org/release/3.1.5/reference/datamodel.htm...