[New-bugs-announce] [issue7988] complex.__format__ has incorrect default alignment
Eric Smith
report at bugs.python.org
Mon Feb 22 17:19:03 CET 2010
New submission from Eric Smith <eric at trueblade.com>:
Complex uses left alignment by default, but should use right alignment like the other numeric types.
>>> format(1+1j, '20.0')
'(1+1j) '
>>> format(1.0, '20.0')
' 1e+00'
>>> format(1, '20')
' 1'
----------
assignee: eric.smith
components: Interpreter Core
messages: 99773
nosy: eric.smith
severity: normal
status: open
title: complex.__format__ has incorrect default alignment
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7988>
_______________________________________
More information about the New-bugs-announce
mailing list