diff options
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." |