8000 Merge pull request #26742 from seberg/issue-26731 · numpy/numpy@b8d1012 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8d1012

Browse files
authored
Merge pull request #26742 from seberg/issue-26731
DOC: Mention '1.25' legacy printing mode in ``set_printoptions``
2 parents 053ed28 + 4d1c13d commit b8d1012

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

numpy/_core/arrayprint.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,19 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
220220
by not inserting spaces after commas that separate fields and after
221221
colons.
222222
223+
If set to ``'1.25'`` approximates printing of 1.25 which mainly means
224+
that numeric scalars are printed without their type information, e.g.
225+
as ``3.0`` rather than ``np.float64(3.0)``.
226+
223227
If set to `False`, disables legacy mode.
224228
225229
Unrecognized strings will be ignored with a warning for forward
226230
compatibility.
227231
228232
.. versionadded:: 1.14.0
229233
.. versionchanged:: 1.22.0
234+
.. versionchanged:: 2.0
235+
230236
override_repr: callable, optional
231237
If set a passed function will be used for generating arrays' repr.
232238
Other options will be ignored.

0 commit comments

Comments
 (0)
0