From dfc11649961a49bcce8f16c662efc16eec3855cb Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 17 Nov 2017 19:37:37 -0700 Subject: MAINT: Add `.. versionadded ::` to parameter documentation. Note that the `legacy` keyword was added in NumPy 1.14.0. [ci skip] --- numpy/core/arrayprint.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'numpy/core/arrayprint.py') 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 ------- -- cgit v1.2.1