Stefan Krah added the comment: With int and float it's also possible to specify both conflicting alignments and fill characters:
>>> "{:x<06}".format(1.2) '1.2xxx' So I really think that the builtins should be changed to detect the conflict. ---------- assignee: skrah -> components: +Interpreter Core title: Decimal doesn't support aligned fill -> int and float should detect inconsistent format strings _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17247> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com