DEP: Deprecate inexact matches for mode, searchside#16056
DEP: Deprecate inexact matches for mode, searchside#16056seberg merged 5 commits intonumpy:masterfrom
Conversation
0d292b3 to
9b5fb65
Compare
|
Think you had a typo in the PR title, corrected it. |
|
Needs a rebase to clear out the first two commits |
0a23278 to
92a4060
Compare
|
numpy/core/_add_newdocs.py
Outdated
There was a problem hiding this comment.
big and little are consistent with sys.byteorder, so I don't think we want to deprecate them.
There was a problem hiding this comment.
I did this since some of the numpy documentation uses 'B' 'L' etc. for byte order : https://numpy.org/doc/stable/reference/generated/numpy.ndarray.newbyteorder.html?highlight=numpy%20ndarray%20newbyteorder#numpy.ndarray.newbyteorder and I felt deprecating such usage may have more impact on our existing users than in other deprecations. What do you suggest here ? Should we skip byteorder deprecation or just deprecate non exact matches of 'big', 'little' etc.
a2c7da9 to
e71e704
Compare
|
Ah, I had missed the sortkind proposal. I am not sure I like it. First of all, we currently have In other words, my first gut feeling would be to leave it as the current docs do it. I am happy to keep supporting |
I agree 'quick' vs 'quicksort' can cause some confusion. I think I will revert my changes for sortkind and byteorder for now and just keep the deprecation limited to mode, order and searchside for now. |
02aea73 to
cbdc377
Compare
|
@anirudh2290 now that 1.19 is branched may be a good time to finish this. Just scrolled through, seems at least the "quick" documentation changes are still there. |
Thanks @seberg for pointing this out, for some reason I thought this was done. will check again . |
60d8426 to
ecd52ae
Compare
fe9d21a to
652cee7
Compare
652cee7 to
d871057
Compare
seberg
left a comment
There was a problem hiding this comment.
Thanks Anirudh, looks very nice. The only thing that makes me hesitate a bit is that I just checked scipy, and there are a few files that seem to use order='c' (it seems mainly two files, one file has order="f"), which might indicate that lower cases are used occasionally.
We may get away with it though, but could maybe fixup scipy before in either case? But if anyone has doubts, please say so, because otherwise one of these days I may decide to merge it :).
|
The mailing list discussion did not generate much feedback, but I am concerned that this may bite downstream packages and users. Are we really sure that pandas/astropy/Dask have no problem with this? |
|
Well, I checked those large packages for the ones that would be likely I would be happy with keeping the lower case, if we expect those 3 usage/files in SciPy indicate that it is common enough that we do not want to create churn. That I feel would be the main point, unnecessary churn opposed to the advantage of unified style. |
That would be good |
cdfca00 to
8b97344
Compare
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
8b97344 to
e47680f
Compare
|
Thanks Anirudh! Let me put this in. |
Depends on #16009
Please see the discussion here : #16007 (comment)