diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-11-17 19:37:37 -0700 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2017-11-17 22:01:08 -0500 |
commit | dfc11649961a49bcce8f16c662efc16eec3855cb (patch) | |
tree | ee839595f484cc1216e1afddc1c536fc04b5893d /numpy/core/arrayprint.py | |
parent | 3416cc857c0ab3215a3495a3d109ee196a4696a3 (diff) | |
download | numpy-dfc11649961a49bcce8f16c662efc16eec3855cb.tar.gz |
MAINT: Add `.. versionadded ::` to parameter documentation.
Note that the `legacy` keyword was added in NumPy 1.14.0.
[ci skip]
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 571dc721b..0030e0ef1 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -177,7 +177,10 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None, If set to the string `'1.13'` enables 1.13 legacy printing mode. This approximates numpy 1.13 print output by including a space in the sign position of floats and different behavior for 0d arrays. If set to - `False`, disables legacy mode. + `False`, disables legacy mode. Unrecognized strings will be ignored + with a warning for forward compatibility. + + .. versionadded:: 1.14.0 See Also -------- @@ -534,7 +537,10 @@ def array2string(a, max_line_width=None, precision=None, If set to the string `'1.13'` enables 1.13 legacy printing mode. This approximates numpy 1.13 print output by including a space in the sign position of floats and different behavior for 0d arrays. If set to - `False`, disables legacy mode. + `False`, disables legacy mode. Unrecognized strings will be ignored + with a warning for forward compatibility. + + .. versionadded:: 1.14.0 Returns ------- |