[Numpy-svn] r3488 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Dec 23 00:37:44 CST 2006


Author: oliphant
Date: 2006-12-23 00:37:39 -0600 (Sat, 23 Dec 2006)
New Revision: 3488

Modified:
   trunk/numpy/core/defchararray.py
Log:
Fix ticket #408 --- chararray problem with argsort

Modified: trunk/numpy/core/defchararray.py
===================================================================
--- trunk/numpy/core/defchararray.py	2006-12-14 14:57:08 UTC (rev 3487)
+++ trunk/numpy/core/defchararray.py	2006-12-23 06:37:39 UTC (rev 3488)
@@ -129,6 +129,9 @@
     def __rmod__(self, other):
         return NotImplemented
 
+    def argsort(self, axis=-1, kind='quicksort', order=None):
+        return self.__array__().argsort(axis, kind, order)
+
     def _generalmethod(self, name, myiter):
         res = [None]*myiter.size
         maxsize = -1



More information about the Numpy-svn mailing list