hi all,
will array(Python set) (and asarray, asfarray etc) ever be implemented
as cast method?
Now it just puts the set into 1st element:
asarray(set([11, 12, 13, 14]))
array(set([11, 12, 13, 14]), dtype=object)
array(set([11, 12, 13, 14]))
array(set([11, 12, 13, 14]), dtype=object)
dmitrey wrote:
hi all,
will array(Python set) (and asarray, asfarray etc) ever be implemented
as cast method?
Use fromiter instead.We could special case set objects in array(...)
if that is deemed desirable.
-Travis
___
Numpy-discussion