We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.


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.