diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-04-12 23:30:51 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-04-12 23:30:51 +0000 |
commit | d618770c32987d4148a94e6e14c14b9de72e3763 (patch) | |
tree | 62f2eebd98c586689a8eab317d64931897a18f47 /numpy/core/defchararray.py | |
parent | ea68104317fedb97b7e893f9adbcfb9532c2a938 (diff) | |
download | numpy-d618770c32987d4148a94e6e14c14b9de72e3763.tar.gz |
Fix Ticket #50 --- allow reconstruction of dumped chararray
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index 9ef3cb376..aeba32fc5 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -36,7 +36,8 @@ class chararray(ndarray): return self def __array_finalize__(self, obj): - if not _globalvar and self.dtype.char not in 'SU': + # The b is a special case because it is used for reconstructing. + if not _globalvar and self.dtype.char not in 'SUb': raise ValueError, "Can only create a chararray from string data." |