3 ms·
If "you think", please look it up instead of blindly confirming. %s was never deprecated. str.format is said to be preferred, and maybe one day it will complet
by scrollaway 13y ago
If "you think", please look it up instead of blindly confirming.
%s was never deprecated. str.format is said to be preferred, and maybe one day it will completely replace %s. Heaven knows if that'll even happen in 4.0, it's a bigger switch than 3.x's print() and unicode changes combined.
http://docs.python.org/2/library/stdtypes.html#str.format http://docs.python.org/2/library/stdtypes.html#str.format