[issue11244] Negative tuple elements produce inefficient code.

Mark Dickinson report at bugs.python.org
Fri Mar 11 09:32:54 CET 2011


Mark Dickinson <dickinsm at gmail.com> added the comment:

fold-0.patch looks good to me, but why do you include tests only for the float case (-0.0) and not the integer case (-0)?

Style nitpick:  "def negzero(): return -(1.0-1.0)" should be on two source lines, not one.

----------

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


More information about the Python-bugs-list mailing list