This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Philippe.Rouquier
Recipients Philippe.Rouquier
Date 2013-04-23.09:19:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366708799.03.0.595068408513.issue17821@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

the following statement yields different results in python2 and python3:
284397269195572115652769428988866694680//17 - int(284397269195572115652769428988866694680/17)

In python3 it yields:
309657313492949847071

In python2 it yields:
OL

Python2's result seems to be correct as (284397269195572115652769428988866694680//17) and (int(284397269195572115652769428988866694680/17)) should return the same result (as far as I understand).

With smaller numbers, this difference in results does not appear with python3.

Note: I noticed this, while working on RSA; 284397269195572115652769428988866694680 is (p-1)(q-1) and 17 is e. I just mention this in case it could help.

I used linux version 3.3.3.0 and 2.7.3 for the tests on a 64 bits processor.

Sorry if I am missing something here.
History
Date User Action Args
2013-04-23 09:19:59Philippe.Rouquiersetrecipients: + Philippe.Rouquier
2013-04-23 09:19:59Philippe.Rouquiersetmessageid: <1366708799.03.0.595068408513.issue17821@psf.upfronthosting.co.za>
2013-04-23 09:19:58Philippe.Rouquierlinkissue17821 messages
2013-04-23 09:19:58Philippe.Rouquiercreate