summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorgfyoung <gfyoung@mit.edu>2016-01-13 13:15:21 +0000
committergfyoung <gfyoung@mit.edu>2016-03-15 15:04:05 +0100
commit9128ed5198cc8544406467a00824e5fe6791f090 (patch)
treeca3dc831ff1566a2794e940d1a358a17774fd59b /numpy/lib/function_base.py
parente034b86d1f40af6e15a829d093232febd4a708c3 (diff)
downloadnumpy-9128ed5198cc8544406467a00824e5fe6791f090.tar.gz
BUG: Fix string copying for np.place
Fixes bug in string copying in np.place in which replacements strings that were smaller than their replaced elements would only partially replace the element instead of the entire element. Closes gh-6974. Addendum: this commit also appears to have fixed issue with overflow for very large input arrays. Closes gh-7207.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index c155babef..648eb5019 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -2026,7 +2026,8 @@ def place(arr, mask, vals):
vals : 1-D sequence
Values to put into `a`. Only the first N elements are used, where
N is the number of True values in `mask`. If `vals` is smaller
- than N it will be repeated.
+ than N, it will be repeated, and if elements of `a` are to be masked,
+ this sequence must be non-empty.
See Also
--------