[Numpy-discussion] A bug in numarray?

Nadav Horesh NadavH at VisionSense.com
Wed Sep 14 04:14:20 CDT 2005


It seems that the tostring method fails on rank 0 arrays:

a = N.array(-4)
>>> a
array(-4)
>>> a.tostring()

Traceback (most recent call last):
  File "<pyshell#18>", line 1, in -toplevel-
    a.tostring()
  File "/usr/local/lib/python2.4/site-packages/numarray/generic.py",
line 746, in tostring
    self._strides, self._itemsize)
MemoryError
>>> N.__version__
'1.4.0'


  Nadav.




More information about the Numpy-discussion mailing list