summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-09-16 02:08:59 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-09-16 02:08:59 +0000
commit8b6db6e885dec95dda7bbe2001d95bdee63e6cf1 (patch)
tree66e012c2479c69c935529d6f56488829f2433995 /numpy/lib/utils.py
parentf74f1d14f0768650a7dd5327944ddcc82f0d892d (diff)
downloadnumpy-8b6db6e885dec95dda7bbe2001d95bdee63e6cf1.tar.gz
Fix ticket #188 by returning the name of the dtype objects for data-type objects without fields or sub-arrays that are in correct byte-order
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index b6ee51b91..981ec6de5 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -238,7 +238,10 @@ def info(object=None,maxwidth=76,output=sys.stdout,toplevel='numpy'):
if object is None:
info(info)
- elif isinstance(object, types.StringType):
+ elif isinstance(object, ndarray):
+ import numpy.numarray as nn
+ nn.info(object, output=output, numpy=1)
+ elif isinstance(object, str):
if _namedict is None:
_namedict, _dictlist = _makenamedict(toplevel)
numfound = 0