Raymond Hettinger wrote:
PEP-3141 outlines an approach to writing binary
operators to allow the right operand to override
the operation if the left operand inherits the
operation from the ABC.
Here is my first approximation at how to write
them for the Integral mixins:
class
PEP-3141 outlines an approach to writing binary operators to allow the
right operand to override the operation if the left operand inherits
the operation from the ABC.
Here is my first approximation at how to write them for the Integral mixins:
class Integral(Rational):
def __and__(self,