mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
acad05cb13
The Python method for /= was set as `__idiv__`, which should be `__itruediv__` under Python 3. This wasn't totally broken in that without it defined, Python constructs a new object by calling __truediv__. The operator tests, however, didn't actually test the /= operator: when I added it, I saw an extra construction, leading to the problem. This commit also includes tests for the previously untested *= operator, and adds some element-wise vector multiplication and division operators. |
||
---|---|---|
.. | ||
pybind11 |