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 mark.dickinson
Recipients mark.dickinson, serhiy.storchaka
Date 2016-05-09.16:43:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462812216.53.0.912677923572.issue26984@psf.upfronthosting.co.za>
In-reply-to
Content
> But I think that the int constructor should convert its result to exact int.

Agreed. See also issue 17576 and previous discussions on python-dev (thread started in March, but most of the messages in April):

- https://mail.python.org/pipermail/python-dev/2013-March/125022.html
- https://mail.python.org/pipermail/python-dev/2013-April/125042.html

I don't have strong feelings about `__trunc__` (or `__floor__` and `__ceil__`); it seems fine to me for those to be returning something other than a strict int.
History
Date User Action Args
2016-05-09 16:43:36mark.dickinsonsetrecipients: + mark.dickinson, serhiy.storchaka
2016-05-09 16:43:36mark.dickinsonsetmessageid: <1462812216.53.0.912677923572.issue26984@psf.upfronthosting.co.za>
2016-05-09 16:43:36mark.dickinsonlinkissue26984 messages
2016-05-09 16:43:36mark.dickinsoncreate