|
|
|
|
|
by beambot
5037 days ago
|
|
Despite being a day-to-day python programmer (scientific computing with some django on the side), apparently I've been living under a rock. When did .format supersede normal printf-style string formatting, ie. "%f" % (3.14)? Is the latter now deprecated? |
|
http://docs.python.org/dev/py3k/whatsnew/3.0.html#changes-al...
PEP 3101: Advanced String Formatting. [...] The plan is to eventually make this the only API for string formatting, and to start deprecating the % operator in Python 3.1.
As far as I know, interpolation is not actually deprecated yet though.