Sergey Shashkov added the comment:
def __floordiv__(a, b):
"""a // b"""
if isinstance(b, numbers.Complex):
return math.floor(a / b)
else:
return NotImplemented
And the same for __mod__.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25412>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com