diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-26 09:27:42 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-26 09:27:42 +0000 |
commit | 65d5f7fc7378e7d8a05125c667ae933b7a6c040f (patch) | |
tree | 6dba6f7ca866e340758b72161d22777454933e5b /scipy/base/convertcode.py | |
parent | c46f1525791d6b78b80ccb3dca01581d1ff30ed4 (diff) | |
download | numpy-65d5f7fc7378e7d8a05125c667ae933b7a6c040f.tar.gz |
Changed .toscalar() method to .item()
Diffstat (limited to 'scipy/base/convertcode.py')
-rw-r--r-- | scipy/base/convertcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scipy/base/convertcode.py b/scipy/base/convertcode.py index 902407873..1d93b94ed 100644 --- a/scipy/base/convertcode.py +++ b/scipy/base/convertcode.py @@ -65,8 +65,8 @@ def replaceattr(astr): astr = astr.replace(".typecode()",".dtypechar") astr = astr.replace(".iscontiguous()",".flags.contiguous") astr = astr.replace(".byteswapped()",".byteswap()") + astr = astr.replace(".toscalar()", ".item()") astr = astr.replace(".itemsize()",".itemsize") - # preserve uses of flat that should be o.k. tmpstr = flatindex_re.sub("@@@@\\2",astr) # replace other uses of flat |