New submission from py.user: >>> '{:02}'.format('a') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: '=' alignment not allowed in string format specifier >>>
according to http://docs.python.org/py3k/library/string.html#formatspec the default alignment is '<' or '>' ---------- components: Interpreter Core messages: 168258 nosy: py.user priority: normal severity: normal status: open title: In str.format there is a misleading error message about alignment type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com