operators.h
8.45 KB
-
Define both __div__ and __truediv__ for Python 2 · 35998a03
Python 2 requires both `__div__` and `__truediv__` (and variants) for compatibility with both regular Python 2 and Python 2 under `from __future__ import division`. Without both, division fails in one or the other case.
Jason Rhinelander committed