Terry J. Reedy added the comment:
As I read the docs, the error message is correct and this issue is invalid as a
behavior issue. I read the OP's second message as more or less saying this also.
'='Forces the padding to be placed after the sign (if any) but before the
digits. This is used
Roundup Robot added the comment:
New changeset 85cd54b2d3a1 by Terry Jan Reedy in branch '2.7':
Issue 15660: Clarify 0 prefix for width field in str.format doc.
http://hg.python.org/cpython/rev/85cd54b2d3a1
New changeset 6bc14974024f by Terry Jan Reedy in branch '3.2':
Issue 15660: Clarify 0
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15660
___
___
Python-bugs-list
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 ''
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eric.smith, ezio.melotti
stage: - needs patch
versions: +Python 2.7, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15660
py.user added the comment:
found a small string in the doc about zero padding, which enables alignment
equal to =
--
versions: -Python 2.7, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15660