Re: [Numpy-discussion] what does "in" do with numpy arrays?

2011-05-31 Thread Robert Kern
On Tue, May 31, 2011 at 11:25, Christopher Barker wrote: > Hi folks, > > I've re-titled this thread, as it's about a new question, now: > > What does: > > something in a_numpy_array > > mean? i.e. how has __contains__ been defined? > > A couple of us have played with it, and can't make sense of it

[Numpy-discussion] what does "in" do with numpy arrays?

2011-05-31 Thread Christopher Barker
Hi folks, I've re-titled this thread, as it's about a new question, now: What does: something in a_numpy_array mean? i.e. how has __contains__ been defined? A couple of us have played with it, and can't make sense of it: > In [24]: a > Out[24]: array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1