summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2009-09-30 20:40:40 +0000
committerCharles Harris <charlesr.harris@gmail.com>2009-09-30 20:40:40 +0000
commit68e62cc96b01f756ddb845d4215d3d48686d9d67 (patch)
tree5566217aa980b8662ac018bb684ab956ebd5cc0e /numpy/lib/utils.py
parent6db651b5106b0acf1adb4a778d308202454caa35 (diff)
downloadnumpy-68e62cc96b01f756ddb845d4215d3d48686d9d67.tar.gz
Fix ticket #1243. Patch from gnutino.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 908c4995d..a4072d7bd 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -293,7 +293,7 @@ def who(vardict=None):
namestr = name
original=1
shapestr = " x ".join(map(str, var.shape))
- bytestr = str(var.itemsize*product(var.shape))
+ bytestr = str(var.nbytes)
sta.append([namestr, shapestr, bytestr, var.dtype.name,
original])