[New-bugs-announce] [issue27363] Complex with negative zero imaginary part

Vedran Čačić report at bugs.python.org
Tue Jun 21 15:02:08 EDT 2016


New submission from Vedran Čačić:

Look:

    >>> complex('1-0j')
    (1-0j)
    >>> 1-0j
    (1+0j)

Yes, I understand what's going on, and it's probably wrong / too much to expect 1-0j to work properly, but I'd really like the complex from string constructor to be consistent with that. Even more because (of course):

    >>> import ast
    >>> ast.literal_eval('1-0j')
    (1+0j)

----------
messages: 269013
nosy: Vedran.Čačić
priority: normal
severity: normal
status: open
title: Complex with negative zero imaginary part
type: behavior
versions: Python 3.6

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


More information about the New-bugs-announce mailing list