[New-bugs-announce] [issue15660] In str.format there is a misleading error message about alignment
py.user
report at bugs.python.org
Wed Aug 15 06:20:40 CEST 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue15660>
_______________________________________
More information about the New-bugs-announce
mailing list