summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-09-22 19:42:43 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-09-22 19:42:43 +0000
commit310b6d0be5f3277a4bb233564e2b476b676ad646 (patch)
treeaff876c03ed08bc01de3d47ee042fd2e08bdbb0d /numpy/add_newdocs.py
parent98940062227b324d22dc2b81b9a4814dd9acfc57 (diff)
downloadnumpy-310b6d0be5f3277a4bb233564e2b476b676ad646.tar.gz
Switch order of .put arguments to match the function call. Eliminate .putmask as a method and make it only a function.
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 9feed132b..a9346c74f 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -878,18 +878,17 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('ptp',
add_newdoc('numpy.core.multiarray', 'ndarray', ('put',
- """a.put(values, indices, mode) sets a.flat[n] = values[n] for
- each n in indices. v can be scalar or shorter than indices, and
- it will repeat.
-
+ """a.put(indices, values, mode) sets a.flat[n] = values[n] for
+ each n in indices. If values is shorter than indices then it
+ will repeat.
"""))
-add_newdoc('numpy.core.multiarray', 'ndarray', ('putmask',
- """a.putmask(values, mask) sets a.flat[n] = v[n] for each n where
- mask.flat[n] is true. v can be scalar.
-
- """))
+add_newdoc('numpy.core.multiarray', 'putmask',
+ """putmask(a, mask, values) sets a.flat[n] = values[n] for each n where
+ mask.flat[n] is true. If values is not the same size of a and mask then
+ it will repeat. This gives different behavior than a[mask] = values.
+ """)
add_newdoc('numpy.core.multiarray', 'ndarray', ('ravel',