summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-04-26 17:34:41 +0100
committerEric Wieser <wieser.eric@gmail.com>2017-05-01 11:01:02 +0100
commit89d7d1d51337bdfad1123f18b9fdb126240cf000 (patch)
tree14f33d32c8f883532b7950fec3b53ebe8aee1702
parent95b550b27ea3c1a5753b51f2d3d1cb8af8ebf8d2 (diff)
downloadnumpy-89d7d1d51337bdfad1123f18b9fdb126240cf000.tar.gz
DOC: Release note and docstring
Also adds a release note for gh-8963
-rw-r--r--doc/release/1.13.0-notes.rst7
-rw-r--r--numpy/core/arrayprint.py1
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/1.13.0-notes.rst b/doc/release/1.13.0-notes.rst
index f594c1825..5362dc091 100644
--- a/doc/release/1.13.0-notes.rst
+++ b/doc/release/1.13.0-notes.rst
@@ -332,6 +332,13 @@ New ``positive`` ufunc
This ufunc corresponds to unary `+`, but unlike `+` on an ndarray it will raise
an error if array values do not support numeric operations.
+Better ``repr`` of object arrays
+--------------------------------
+Object arrays that contain themselves no longer cause a recursion error.
+
+Object arrays that contain ``list`` objects are now printed in a way that makes
+clear the difference between a 2d object array, and a 1d object array of lists.
+
Changes
=======
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index f6f610f79..e54f4602a 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -102,6 +102,7 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
- 'complexfloat'
- 'longcomplexfloat' : composed of two 128-bit floats
- 'numpystr' : types `numpy.string_` and `numpy.unicode_`
+ - 'object' : `np.object_` arrays
- 'str' : all other strings
Other keys that can be used to set a group of types at once are::