[issue9011] ast_for_factor unary minus optimization changes AST
Antonio Cuni
report at bugs.python.org
Thu Oct 18 14:13:35 CEST 2012
Antonio Cuni added the comment:
I would say that the complex-from-string constructor should be fixed to handle this special case "correctly".
I find very confusing that we get a different result whether we use a string literal or not.
For example, in pypy we use the same code for parsing literals and converting strings, so you get -0.0 in both cases.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9011>
_______________________________________
More information about the Python-bugs-list
mailing list