2 May
2007
2 May
'07
7:52 a.m.
Mark, In your example:
b = asarray(3,'d')
b is really a numpy scalar, so it doesn't have a length. But it does have a size (1) and a ndim (0). If you need to have arrays with a length, you can force the array to have a dimension 1 with atleast_1d(b) or array(b,copy=False,ndmin=1)