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)
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to