[Numpy-discussion] Numeric3.0 - unable to retrieve data typecode

Colin J. Williams cjw at sympatico.ca
Fri Oct 7 11:49:28 CDT 2005


# temp.py
import scipy.base as num3
a= num3.array([[1, 2], [9, 8]])
print a.typecode

C:\>python temp.py
Traceback (most recent call last):
  File "temp.py", line 4, in ?
    print a.typecode
AttributeError: 'scipy.ndarray' object has no attribute 'typecode'

Is there any simple way to retrieve the dataType, as with numarray's 
numerictypes?

Colin W.




More information about the Numpy-discussion mailing list