Python 2.6 introduced the str.format() method with a slightly different syntax from the existing % operator. Which is better and for what situations?
%
Pyt
PEP 3101 proposes the replacement of the % operator with the new, advanced string formatting in Python 3, where it would be the default.