The tuples represent fractions. I\'m trying to divide the fractions by multiplying by the reciprical
class Test(): def __init__(self): self._x=(1
Python 3.x uses __truediv__ and __floordiv__. __div__ is 2.x-only.
__truediv__
__floordiv__
__div__
had the same problem the other day.
see if __future__.division is active in your environment. if so, you need to define __truediv__ as well.
http://docs.python.org/2/library/operator.html#mapping-operators-to-functions