GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — ENH: add no-op fallback in np.byteswap for types with no byte order by ngoldbaum · Pull Request #32150 · numpy/numpy Conversation
|
|
I marked this as draft because I want to do this after #32151 merges now. This PR will contain the "new" allowed behaviors, once we decide on them. I think only error make sense for a backport. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
27f32fd to
cf212c4
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me overall. Got a release note change request + a suggestion to fix a pre-existing bug.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * ``ndarray.byteswap`` and ``numpy.byteswap`` now support dtypes that have no | ||
| defined byte order (e.g. when ``dtype.byteorder == "|"``). This includes NumPy's | ||
| string dtypes. Such values are left unchanged, including when they occur in | ||
| structured dtypes. |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This needs a different format with a title right? + numpy.byteswap does not exist.
| * ``ndarray.byteswap`` and ``numpy.byteswap`` now support dtypes that have no | |
| defined byte order (e.g. when ``dtype.byteorder == "|"``). This includes NumPy's | |
| string dtypes. Such values are left unchanged, including when they occur in | |
| structured dtypes. | |
| Byteswapping dtypes without a defined byte order is now supported as as no-op | |
| ----------------------------------------------------------------------------- | |
| ``ndarray.byteswap`` now supports dtypes that have no defined byte order | |
| (e.g. when ``dtype.byteorder == "|"``). This includes NumPy's string dtypes. | |
| Such values are left unchanged, including when they occur in structured dtypes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This needs a different format with a title right?
You don't need to use a title, no. We also have all_bullets = false in our towncrier config:
Line 113 in 5799ed4
| all_bullets = false |
So if I explicitly add a bullet like this, it'll render as one of a number of bulleted bugfixes. I don't think this is worth a whole heading in the release notes, personally.
Thanks for catching my using the wrong name!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ah I was not aware of the no-heading formatting. numpy.byteswap is the only valid comment then here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
we should probably add some text about it to the README we have in the release notes folder.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I also loosened the text about string dtypes here. Of course the UCS-4 unicode dtype is byteswappable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Had a decent go-over and this looks all fine (I would not have picked up on the VOID/etc asserts...).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think only the numpy.byteswap thing on the release note comment is left here. Otherwise good to go from my side. CI needs to run though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If CI is happy, I'm happy :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks for the review all! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.