[Numpy-discussion] unique() should return a sorted array

David Huard david.huard at gmail.com
Mon Jul 17 09:10:55 CDT 2006


Hi,

I attached a patch for unique (with a test case) based on Norbert's
suggestion. I removed the sort keyword since iterable arrays would be sorted
anyway. The function uses a python set, and I was wondering if it is ok to
assume that everyone running numpy has a python version >= 2.3 ?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060717/7b8ee959/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unique.patch
Type: text/x-patch
Size: 2145 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060717/7b8ee959/attachment.bin 


More information about the Numpy-discussion mailing list