From 77295888c6913b2bccaf69571fc97f87d211aa62 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 23 Dec 2006 06:37:39 +0000 Subject: Fix ticket #408 --- chararray problem with argsort --- numpy/core/defchararray.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/core/defchararray.py') diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index 39492b421..c77ec30be 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -129,6 +129,9 @@ class chararray(ndarray): 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 -- cgit v1.2.1