summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-03-02 15:08:27 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-03-02 15:08:27 +0000
commit47caf646269a9feb966d5aab547f74dff501324d (patch)
treef69c916599d7f036447a198215d02f21d1aff241 /numpy/core/defchararray.py
parent7dc0e14495592f7d2e80f71772b0964e891eafc9 (diff)
downloadnumpy-47caf646269a9feb966d5aab547f74dff501324d.tar.gz
Allow c in dtype for charray (#917).
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r--numpy/core/defchararray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py
index 2dec5634e..9866954c1 100644
--- a/numpy/core/defchararray.py
+++ b/numpy/core/defchararray.py
@@ -53,7 +53,7 @@ class chararray(ndarray):
def __array_finalize__(self, obj):
# The b is a special case because it is used for reconstructing.
- if not _globalvar and self.dtype.char not in 'SUb':
+ if not _globalvar and self.dtype.char not in 'SUbc':
raise ValueError, "Can only create a chararray from string data."
def __getitem__(self, obj):