Message3273

Author pjenvey
Recipients pjenvey
Date 2008-06-11.00:01:57
SpamBayes Score 0.006949657
Marked as misclassified No
Message-id <1213142521.04.0.91279521255.issue1052@psf.upfronthosting.co.za>
In-reply-to
Content
For PEP 237 I basically had to change __int__ to be able to return 
PyLongs:

Python 2.5.2 (r252:60911, Apr 22 2008, 12:00:45) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> (sys.maxint + 1).__int__()
2147483648L

I think it's definitely necessary, but we cast the result of __int__() 
to PyInteger all over the place. These probably need to all be changed 
to obj.asInt() instead, which returns a Java int and can raise 
OverflowError
History
Date User Action Args
2008-06-11 00:02:03pjenveysetspambayes_score: 0.00694966 -> 0.006949657
recipients: + pjenvey
2008-06-11 00:02:01pjenveysetspambayes_score: 0.00694966 -> 0.00694966
messageid: <1213142521.04.0.91279521255.issue1052@psf.upfronthosting.co.za>
2008-06-11 00:01:59pjenveylinkissue1052 messages
2008-06-11 00:01:58pjenveycreate