Skip to content

Commit 3714b74

Browse files
committed
DOC: Clarify that numpy.printoptions applies only to ndarray, not scalars
As discussed in #29409, numpy.printoptions applies only to `numpy.ndarray`, not to scalars. A Note describing this behavior has been added to the docstring.
1 parent 9a1fd19 commit 3714b74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

numpy/_core/arrayprint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ def printoptions(*args, **kwargs):
410410
--------
411411
set_printoptions, get_printoptions
412412
413+
Notes
414+
-----
415+
These print options apply only to NumPy ndarrays, not to scalars.
416+
413417
"""
414418
token = _set_printoptions(*args, **kwargs)
415419

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy