Re: [Numpy-discussion] [SciPy-user] unique, sort, sortrows

2008-07-28 Thread Alan G Isaac
David M. Kaplan wrote: > python appears to be fairly sloppy about how it passes > indexing arguments to the __getitem__ method. I do not generally find the word 'sloppy' to be descriptive of Python. > It passes a tuple containing the arguments in all cases > except when it has one argument, in

[Numpy-discussion] [SciPy-user] unique, sort, sortrows

2008-07-28 Thread David M. Kaplan
Hi, Well, as usual there are compromises in everything and the mgrid/ogrid functionality is the way it currently is for some good reasons. The first reason is that python appears to be fairly sloppy about how it passes indexing arguments to the __getitem__ method. It passes a tuple containing th

Re: [Numpy-discussion] [SciPy-user] unique, sort, sortrows

2008-07-26 Thread Robert Cimrman
Hi David, I can comment on unique1d, as I am the culprit. I am cc'ing to numpy-discussion as this is a numpy function. Quoting "David M. Kaplan" <[EMAIL PROTECTED]>: > 2) Is there a simple equivalent of sortrows(a) (i.e., sorting by entire > rows)? Similarly, is there a simple equivalent of th