diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-01-19 20:48:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 20:48:37 -0700 |
commit | 9749eec481b97f63520915b044dc5fdd14c71ebd (patch) | |
tree | e8f2449a99d8a2943681aa5326a46c8afd4accb2 /doc | |
parent | d370662e8d21dc72e2145cc2d6d1de1a4ed630f3 (diff) | |
parent | ba3e5856ca20d66aaa675261e82da1814f9cba1f (diff) | |
download | python-numpy-9749eec481b97f63520915b044dc5fdd14c71ebd.tar.gz python-numpy-9749eec481b97f63520915b044dc5fdd14c71ebd.tar.bz2 python-numpy-9749eec481b97f63520915b044dc5fdd14c71ebd.zip |
Merge pull request #10406 from ev-br/print_opts_ctx
ENH: add `np.printoptions`, a context manager
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.15.0-notes.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/release/1.15.0-notes.rst b/doc/release/1.15.0-notes.rst index 16a44113c..996cd47b9 100644 --- a/doc/release/1.15.0-notes.rst +++ b/doc/release/1.15.0-notes.rst @@ -15,6 +15,13 @@ New functions * `np.ma.stack`, the `np.stack` array-joining function generalized to masked arrays. +* `np.printoptions`, the context manager which sets print options temporarily + for the scope of the ``with`` block:: + + >>> with np.printoptions(precision=2): + ... print(np.array([2.0])) / 3 + [0.67] + Deprecations ============ |