diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-10-26 03:31:22 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-10-26 03:31:22 +0000 |
commit | 9e2b9a429169902426dc07156f0414d2ec63a8c6 (patch) | |
tree | ae773d3841bdbc937ed4994dbfc97b9c031b02f6 /scipy/base/numeric.py | |
parent | 33616f8e0e2574ce73442bf257dba723f812b572 (diff) | |
download | numpy-9e2b9a429169902426dc07156f0414d2ec63a8c6.tar.gz |
Fix segfault with Character arrays.
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r-- | scipy/base/numeric.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py index 92b19e02d..b388ef140 100644 --- a/scipy/base/numeric.py +++ b/scipy/base/numeric.py @@ -196,6 +196,8 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): return cName + "(%s)" % lst else: typename=arr.dtype.__name__[:-8] + if issubclass(arr.dtype, flexible): + typename = "%s%d" % (typename, arr.itemsize) return cName + "(%s, dtype=%s)" % (lst, typename) def array_str(a, max_line_width = None, precision = None, suppress_small = None): |