diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-12-09 20:00:27 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-12-09 20:00:27 +0000 |
commit | 6d8631d90dc03603ce7c0482ccdb16bf3a88d4d3 (patch) | |
tree | 83a57fb1a7af6d9251a9b37f297defa225873de0 /numpy/core/defchararray.py | |
parent | db487c204c9df0472642d14d80632382463ecbcc (diff) | |
download | numpy-6d8631d90dc03603ce7c0482ccdb16bf3a88d4d3.tar.gz |
Fix shuffle and chararray printing for empty strings.
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index 80822328c..39492b421 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -47,7 +47,7 @@ class chararray(ndarray): if isinstance(val, (string_, unicode_)): temp = val.rstrip() if len(temp) == 0: - val = val[0] + val = '' else: val = temp return val |