Message10164
BigInteger's behavior becomes different between Jython2.7 and 2.5. It made some Java related functions broken.
In Jython 2.5
Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:48:36)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_51
>>> from java.math import BigInteger
>>> BigInteger.valueOf(1).abs()
1
>>> type(BigInteger.valueOf(1))
<type 'java.math.BigInteger'>
=============================
In Jython 2.7:
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_60
>>> from java.math import BigInteger
>>> BigInteger.valueOf(1).abs()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'long' object has no attribute 'abs'
>>> type(BigInteger.valueOf(1))
<type 'long'> |
|
Date |
User |
Action |
Args |
2015-07-24 03:32:37 | kaneg | set | recipients:
+ kaneg |
2015-07-24 03:32:37 | kaneg | set | messageid: <1437708757.77.0.597491584436.issue2382@psf.upfronthosting.co.za> |
2015-07-24 03:32:37 | kaneg | link | issue2382 messages |
2015-07-24 03:32:36 | kaneg | create | |
|