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

Colin J. Williams cjw at sympatico.ca
Fri Oct 7 11:49:28 EDT 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 

Colin W.

More information about the NumPy-Discussion mailing list