Message8794

Author santa4nt
Recipients santa4nt
Date 2014-06-23.15:20:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403536825.47.0.202003781283.issue2173@psf.upfronthosting.co.za>
In-reply-to
Content
Observe:

Jython 2.7b3+ (default:68cf3c217269+, Jun 23 2014, 08:17:03) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_60
Type "help", "copyright", "credits" or "license" for more information.
>>> (10).__pow__(10L)
NotImplemented
>>> (10).__add__(10L)
NotImplemented


This is caused by `canCoerce()` guards peppered throughout PyInteger method implementation, which simply test if the argument is an instance of PyInteger, which PyLong is not.
History
Date User Action Args
2014-06-23 15:20:25santa4ntsetrecipients: + santa4nt
2014-06-23 15:20:25santa4ntsetmessageid: <1403536825.47.0.202003781283.issue2173@psf.upfronthosting.co.za>
2014-06-23 15:20:25santa4ntlinkissue2173 messages
2014-06-23 15:20:25santa4ntcreate