operator-div
The / (division) and // (floor division) operators yield the
quotient of their arguments. The numeric arguments are first converted
to a common type. Plain or long integer division yields an integer of
the same type; the result is that of mathematical division with the
floor function applied to the result. Division by zero raises the
ZeroDivisionError exception.
To support this operator in your own classes, implement the __div__ method.
last updated 3 years ago by effbot #
