[Numpy-discussion] Creating arrays with 'titles' in dtype causes TypeError on data access
Travis E. Oliphant
Tue Feb 24 22:58:51 CST 2009
Ralph Heinkel wrote:
> However here something is strange:
>>>> arr = array([('john', 4),('mark', 3)],
> dtype=[(('source:yy', 'name'),'O'),(('source:xx','id'),int)])
> ('john', 4)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: function takes at most 2 arguments (3 given)
> Any ideas what I'm doing wrong? Any help would be appreciated.
This is a bug in NumPy. I will fix it in the trunk tonight.
(512) 536-1057 (office)
(512) 536-1059 (fax)
More information about the Numpy-discussion