diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-12-23 06:37:39 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-12-23 06:37:39 +0000 |
commit | 77295888c6913b2bccaf69571fc97f87d211aa62 (patch) | |
tree | 8d6954e3f072e0d4f851b01eec71873d4656736e /numpy/core/defchararray.py | |
parent | 32789fd7d5fdce563c37363a3dd1192aafdc0a9e (diff) | |
download | numpy-77295888c6913b2bccaf69571fc97f87d211aa62.tar.gz |
Fix ticket #408 --- chararray problem with argsort
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 3 |
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 |