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 serhiy.storchaka
Recipients StyXman, facundobatista, rhettinger, serhiy.storchaka
Date 2016-09-08.17:57:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473357428.94.0.480980142871.issue28019@psf.upfronthosting.co.za>
In-reply-to
Content
PyLong_AsLong() not just converts Python integer to C long, but it also converts Python float to Python integer (with the lost of the fractional part). We need to check that the value is Python integer.

Here is a patch that fixes this issue and few other bugs.
History
Date User Action Args
2016-09-08 17:57:08serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, facundobatista, StyXman
2016-09-08 17:57:08serhiy.storchakasetmessageid: <1473357428.94.0.480980142871.issue28019@psf.upfronthosting.co.za>
2016-09-08 17:57:08serhiy.storchakalinkissue28019 messages
2016-09-08 17:57:08serhiy.storchakacreate