From: Albert S. <fu...@gm...> - 2006-07-17 14:59:35
|
Hey David > -----Original Message----- > From: num...@li... [mailto:numpy- > dis...@li...] On Behalf Of David Huard > Sent: 17 July 2006 16:11 > To: num...@li... > 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 |