Python 3 division is floordiv
and truediv
, not __div__
December 8, 2017
Check it out y'all: in Python 3+, division is implemented as __floordiv__
and __truediv__
, not just __div__
as in Python 2.x. See this SO post.