Sergey Shashkov added the comment: 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25412> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com