[Numpy-discussion] Should array iterate over a set?

2007-11-17 Thread Michael McNeil Forbes
My expectation was that array would iterate over a set. This is incorrect: array(set([1,2,3])) array(set([1, 2, 3]), dtype=object) Is this the intended behaviour? A trivial work-around that does what I need is array(list(set([1,2,3]))) array([1, 2, 3]) but I was wondering if this was

Re: [Numpy-discussion] Should array iterate over a set?

2007-11-17 Thread Robert Kern
Michael McNeil Forbes wrote: My expectation was that array would iterate over a set. This is incorrect: array(set([1,2,3])) array(set([1, 2, 3]), dtype=object) Is this the intended behaviour? A trivial work-around that does what I need is array(list(set([1,2,3]))) array([1,