-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
DOC: Summarize printing changes in release notes #10121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
doc/release/1.14.0-notes.rst
Outdated
be uniquely specified, so ``float16`` will be shorter and ``float128`` | ||
longer. The ``str`` of ``float64`` scalars is no longer truncated in python2. | ||
* ``NaT`` values in datetime arrays are now properly aligned | ||
* ``MaskedArray`` arrays have a new single-line output mode for short arrays |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't true - they always still always take multiple lines. What changed is they:
- Show the dtype
- Include commas
- Correctly align wrapped arrays
doc/release/1.14.0-notes.rst
Outdated
* 0d arrays no longer have their own idiosyncratic implementations of ``str`` | ||
and ``repr``. The ``style`` argument to ``np.array2string`` is deprecated. | ||
* Size-0 arrays with multiple dimensions like ``np.zeros((2,0,1))`` are | ||
represented using ``empty`` instead of ``array``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending on #10119, anyway...
doc/release/1.14.0-notes.rst
Outdated
* Size-0 arrays with multiple dimensions like ``np.zeros((2,0,1))`` are | ||
represented using ``empty`` instead of ``array``. | ||
* Arrays of ``object`` datatype containing python lists now clearly | ||
represents the list using the ``list()`` function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't new - it was part of 1.13
doc/release/1.14.0-notes.rst
Outdated
* Arrays of ``bool`` datatype no longer print the datatype in the repr. | ||
* The "dtype" part of ndarray reprs will now be printed on the next line | ||
if there isn't space on the last line of array output. | ||
* User-defined types now need to implement ``__str__`` and ``__repr__`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dtypes
or "subclasses of np.generic
" would be clearer
Don't forget the |
70ece6e
to
0577ad2
Compare
updated I removed the line about |
Looks good. Are there any other sections of the release notes that can be removed as a result of this list? |
Maybe needs a note about #10129 now too |
0577ad2
to
f27eb73
Compare
This reads very well! |
Fixes numpy#10058 [ci skip]
Thanks Allan. I noticed some spelling nits, but will run a spell checker over this before branching 1.14 and maybe make some other small changes. |
Fixes #10058
Suggestions and modification welcome.