[Numpy-discussion] should ndarray implement __round__ for py3k?

Darren Dale dsdale24@gmail....
Thu Mar 25 15:01:44 CDT 2010


A simple test in python 3:

>>> import numpy as np
>>> round(np.arange(10))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: type numpy.ndarray doesn't define __round__ method

Here is some additional context: http://bugs.python.org/issue7261

Darren


More information about the NumPy-Discussion mailing list