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
Date 2014-08-14.16:47:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408034861.79.0.503776123394.issue22198@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure it's worth fixing this, but it seems worth recording:

>>> -0.5 // float('inf')
-1.0

I was expecting a value of `-0.0`, and while IEEE 754 doesn't cover the floor division operation, I'm reasonably confident that that's the value it would have recommended if it had. :-)

However, it's difficult to come up with a situation where the difference matters: there aren't any obvious invariants I can think of that are broken by this special case.  So unless anyone thinks it should be changed, I'll settle for recording the oddity in this issue, and closing as won't fix after a short period.
History
Date User Action Args
2014-08-14 16:47:41mark.dickinsonsetrecipients: + mark.dickinson
2014-08-14 16:47:41mark.dickinsonsetmessageid: <1408034861.79.0.503776123394.issue22198@psf.upfronthosting.co.za>
2014-08-14 16:47:41mark.dickinsonlinkissue22198 messages
2014-08-14 16:47:41mark.dickinsoncreate