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 petr.viktorin
Recipients eryksun, mark.dickinson, petr.viktorin, rhettinger, skrah, steven.daprano, tim.peters
Date 2014-09-07.19:06:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410116787.74.0.898377617203.issue22198@psf.upfronthosting.co.za>
In-reply-to
Content
I tried my hand at writing a patch. I hope it is helpful.

The message of the 2001 commit that introduces this says that "there's no platform-independent way to write a test case for this". I assume with @support.requires_IEEE_754 that is no longer true (at least for non-exotic platforms), or was there another issue?

I noticed there is no test suite for float floordiv, so I attempted writing a fuller one, but when I saw that
>>> float('inf') // 1.0
nan
I decided to keep my first CPython patch small and focused, so I can learn the ropes. I'll file more issues later.
History
Date User Action Args
2014-09-07 19:06:27petr.viktorinsetrecipients: + petr.viktorin, tim.peters, rhettinger, mark.dickinson, steven.daprano, skrah, eryksun
2014-09-07 19:06:27petr.viktorinsetmessageid: <1410116787.74.0.898377617203.issue22198@psf.upfronthosting.co.za>
2014-09-07 19:06:27petr.viktorinlinkissue22198 messages
2014-09-07 19:06:27petr.viktorincreate