dear all,
can anybody tell me, why nobody is answering this question? is this the wrong
place to ask? or does nobody know an answer?
björn
--- Begin Message ---
I came acroos a question on stackoverflow (http://stackoverflow.com/q/9470604)
and I am wondering if this is a bug
import numpy as np
dt = np.dtype([('tuple', (int, 2))])
a = np.zeros(3, dt)
type(a['tuple'][0]) # ndarray
type(a[0]['tuple']) # ndarray
a['tuple'][0] = (1,2) # ok
a[0]['tuple'] = (1,2) # ValueError: shape-mismatch on array construction
Could somebody explain this behaviour (either in this mailing list or on
stackoverflow)?
bmu
--- End Message ---
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion