From 8b6db6e885dec95dda7bbe2001d95bdee63e6cf1 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 16 Sep 2006 02:08:59 +0000 Subject: 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 --- numpy/lib/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/lib/utils.py') 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 -- cgit v1.2.1