timedata-org / old-timedata

Time arts data - high-performance color processing in C++ and Python.
7 stars 3 forks source link

Dividing a color by a number gives a `TypeError` #10

Closed rec closed 8 years ago

rec commented 8 years ago
>>> Color.make(0.25) / 3
TypeError: unsupported operand type(s) for /: 'tdsp.Color' and 'int'`

Probably due to my lack of understanding of __div__ vs __floordiv__ vs __truediv__ in Python 3.