diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-09-15 16:59:14 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-09-15 16:59:14 +0000 |
commit | ac9c4730ca4650d9cc1ca97323a1b499dab970b1 (patch) | |
tree | b21d2f5fd46cb773c3a12c23f85dbb624b713ad0 /numpy/numarray/functions.py | |
parent | 2259299c824b866df8c1ddcf2f7f6ba14930abbd (diff) | |
download | numpy-ac9c4730ca4650d9cc1ca97323a1b499dab970b1.tar.gz |
Fix numarray.info function
Diffstat (limited to 'numpy/numarray/functions.py')
-rw-r--r-- | numpy/numarray/functions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/numarray/functions.py b/numpy/numarray/functions.py index 55922e9fe..fb1c597ac 100644 --- a/numpy/numarray/functions.py +++ b/numpy/numarray/functions.py @@ -347,10 +347,10 @@ def info(obj): print "byteoffset: 0" print "bytestride: ", obj.strides[0] print "itemsize: ", obj.itemsize - print "aligned: ", obj.flags.isaligned + print "aligned: ", obj.flags.aligned print "contiguous: ", obj.flags.contiguous - print "buffer: ", obj.data - print "data pointer:", obj._as_paramater_, "(DEBUG ONLY)" + print "buffer: ", repr(obj.data) + print "data pointer:", obj.ctypes._as_parameter_, "(DEBUG ONLY)" print "byteorder: ", endian = obj.dtype.byteorder if endian in ['|','=']: @@ -360,7 +360,7 @@ def info(obj): else: print "little" print "byteswap: ", not obj.dtype.isnative - print "type: ", typefrom(obj) + print "type: ", typefrom(obj).name #clipmode is ignored if axis is not 0 and array is not 1d def put(array, indices, values, axis=0, clipmode=RAISE): |