Saturday, October 3, 2009

% formatting to str.format converter

Recent discussions on Python-dev have revolved around transitioning the standard library to the new str.format method. One suggestion was to write a automatic converter for old format strings to new ones. I've taken on the task and written mod2format at You can try it out by running "python3 -m mod2format [your format strings here]".