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

David Huard david.huard at gmail.com
Mon Jul 17 10:10:55 EDT 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://mail.python.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: 2146 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060717/7b8ee959/attachment.bin>


More information about the NumPy-Discussion mailing list