diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-02-10 11:21:06 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-02-10 11:21:06 +0000 |
commit | 6fc0e44e5daab7dcaae4a3250b7545a263d6bfcb (patch) | |
tree | 75ec02f5bd4c786498634fbc5b9f34d6fcea7379 /numpy/core/oldnumeric.py | |
parent | ad19f35e7920f83356e44960d21fb9f958f2565b (diff) | |
download | numpy-6fc0e44e5daab7dcaae4a3250b7545a263d6bfcb.tar.gz |
Fixed numpy.put docs, added a test checking a put bug.
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r-- | numpy/core/oldnumeric.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py index 797ac1087..4e3add5b4 100644 --- a/numpy/core/oldnumeric.py +++ b/numpy/core/oldnumeric.py @@ -192,9 +192,9 @@ def put (a, ind, v): is in C for speed): ind = array(indices, copy=False) - v = array(values, copy=False).astype(a, a.dtype) + v = array(values, copy=False).astype(a.dtype) for i in ind: a.flat[i] = v[i] - a must be a contiguous Numeric array. + a must be a contiguous numpy array. """ return a.put(v,ind) |