Re: [Numpy-discussion] setmember1d: docstring vs. code

2007-03-10 Thread Charles R Harris
On 3/10/07, Robert Kern <[EMAIL PROTECTED]> wrote: Jouni K. Seppänen wrote: > I think that either the docstring (and the book) should be corrected > to mention the assumption, or the code should be made to work in the > arbitrary case. This is the current docstring: In [2]: setmember1d? Type:

Re: [Numpy-discussion] setmember1d: docstring vs. code

2007-03-10 Thread Robert Kern
Jouni K. Seppänen wrote: > I think that either the docstring (and the book) should be corrected > to mention the assumption, or the code should be made to work in the > arbitrary case. This is the current docstring: In [2]: setmember1d? Type: function Base Class: Namespace: I

[Numpy-discussion] setmember1d: docstring vs. code

2007-03-10 Thread Jouni K . Seppänen
Hi, According to an earlier posting on this list, the elements of the first argument to setmember1d are assumed to be unique: http://thread.gmane.org/gmane.comp.python.numeric.general/13251/focus=13307 The docstring for setmember1d does not state this: | Definition: numpy.setmember1d(ar1, a