[issue9416] complex formatting incorrectly omits a negative zero real part

Mark Dickinson report at bugs.python.org
Thu Jul 29 15:41:16 CEST 2010


New submission from Mark Dickinson <dickinsm at gmail.com>:

>>> format(complex(-0.0, 2.0), '.10')   # expected '(-0+2j)'
'(+2j)'
>>> format(complex(-0.0, 2.0), '')      # gives expected result
'(-0+2j)'

----------
assignee: mark.dickinson
messages: 111923
nosy: eric.smith, mark.dickinson
priority: normal
severity: normal
stage: unit test needed
status: open
title: complex formatting incorrectly omits a negative zero real part
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9416>
_______________________________________


More information about the Python-bugs-list mailing list