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

Albert Strasheim fullung at gmail.com
Mon Jul 17 09:59:36 CDT 2006


Hey David

> -----Original Message-----
> From: numpy-discussion-bounces at lists.sourceforge.net [mailto:numpy-
> discussion-bounces at lists.sourceforge.net] On Behalf Of David Huard
> Sent: 17 July 2006 16:11
> To: numpy-discussion at lists.sourceforge.net
> Subject: Re: [Numpy-discussion] unique() should return a sorted array
> 
> 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 ?

I think it has been discussed on the list that Python >= 2.3 is assumed.
However, according to the Python documentation, the built-in set type is new
in Python 2.4.

Regards,

Albert





More information about the Numpy-discussion mailing list