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 tim.peters
Recipients eryksun, mark.dickinson, rhettinger, skrah, steven.daprano, tim.peters
Date 2014-08-16.16:02:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408204964.46.0.738893886492.issue22198@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, Mark - I took a true thing and careleslly turned it into a false thing ;-)

It's math.floor(a_float) that returns an int in Py3, not floor division of floats.  So, yup, no real problem with returning -0.0 after all; it's just that it can't be _explained_ via

   x // y means math.floor(x / y)

is Py3 for float x and y, since the latter returns an int bur the former a float.

But looks like it can be "explained" via

   x // y means divmod(x, y)[0]
History
Date User Action Args
2014-08-16 16:02:44tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, steven.daprano, skrah, eryksun
2014-08-16 16:02:44tim.peterssetmessageid: <1408204964.46.0.738893886492.issue22198@psf.upfronthosting.co.za>
2014-08-16 16:02:44tim.peterslinkissue22198 messages
2014-08-16 16:02:44tim.peterscreate