Terry J. Reedy added the comment: You example says to left justify '1' >>> format(1, '<2') '1 ' and then pad with '0' instead of ' '. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15660> _______________________________________