summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-12-23 06:37:39 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-12-23 06:37:39 +0000
commit77295888c6913b2bccaf69571fc97f87d211aa62 (patch)
tree8d6954e3f072e0d4f851b01eec71873d4656736e /numpy/core/defchararray.py
parent32789fd7d5fdce563c37363a3dd1192aafdc0a9e (diff)
downloadnumpy-77295888c6913b2bccaf69571fc97f87d211aa62.tar.gz
Fix ticket #408 --- chararray problem with argsort
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r--numpy/core/defchararray.py3
1 files changed, 3 insertions, 0 deletions
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