py.user added the comment: Terry J. Reedy (terry.reedy) wrote: > You example says to left justify '1'
Nope. The fill character goes before alignment in the specification (grammatics). >>> format(1, '0<2') '10' >>> This is right. But 02 - is zero padding of a number which can be done only from the left side. '<02' means "justify to the left zero padded number" ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com