[Numpy-discussion] will array(Python set) be ever implemented as cast method?

dmitrey dmitrey.kroshko@scipy....
Wed Oct 1 08:38:37 CDT 2008


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)

Currently I use array(list(my_set)) instead.

D.


More information about the Numpy-discussion mailing list