|
|
|
|
|
by masklinn
5037 days ago
|
|
> When did .format supersede normal printf-style string formatting It was backported, but the superseding is mostly for Python 3. > Is the latter now deprecated? Not at all, and not expected to be, though str.format is recommended going forward: http://docs.python.org/py3k/library/stdtypes.html#old-string... > As the new String Formatting syntax is more flexible and handles tuples and dictionaries naturally, it is recommended for new code. However, there are no current plans to deprecate printf-style formatting. |
|