[issue9011] ast_for_factor unary minus optimization changes AST
Mark Dickinson
report at bugs.python.org
Thu Jun 17 13:36:11 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Results from Jython:
newton:jython2.5.1 dickinsm$ ./jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>> -2147483648
-2147483648L
On the other hand, IronPython appears to detect this special case and produces an int instead of a long.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9011>
_______________________________________
More information about the Python-bugs-list
mailing list