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 ShashkovS
Recipients ShashkovS, mark.dickinson, oscarbenjamin, vstinner
Date 2015-10-16.18:14:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445019247.72.0.114955348979.issue25412@psf.upfronthosting.co.za>
In-reply-to
Content
OK,

then we should not change numbers.py.

And in fractions.py:

def __floordiv__(a, b):
        """a // b"""
        if isinstance(b, numbers.Complex) or hasattr(b, '__rtruediv__'):
            fr = a / b
            if fr != NotImplemented:
                return math.floor(a / b)
            else:
                return NotImplemented
        else:
            return NotImplemented
History
Date User Action Args
2015-10-16 18:14:07ShashkovSsetrecipients: + ShashkovS, mark.dickinson, vstinner, oscarbenjamin
2015-10-16 18:14:07ShashkovSsetmessageid: <1445019247.72.0.114955348979.issue25412@psf.upfronthosting.co.za>
2015-10-16 18:14:07ShashkovSlinkissue25412 messages
2015-10-16 18:14:07ShashkovScreate