-
-
Notifications
You must be signed in to change notification settings - Fork 12k
API: Update lib.polynomial and lib.npyio namespaces
#24578
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
|
For future reference, it's a little easier to review renames if you make the rename a single commit and then subsequent edits to the file their own commit. It looks like the two symbols this keeps in Given that this PR proposes keeping Can you add This removes 22 symbols from |
998e4c7 to
7be9485
Compare
Sure!
|
7be9485 to
1a082eb
Compare
rgommers
left a comment
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 looks good to me overall. My one question is why we'd want to make BagObj public? It doesn't seem like a thing that anyone should be using, nor can I find any interesting usage in the wild with code search right now.
Hmm, for some reason I thought I saw some when I searched the other day but can't find any now. Sorry for the mistaken suggestion! The only public usage I can find outside of numpy is here and it's not even used in that file. Given this level of usage I agree with Ralf there's no reason to add it to the docs, it's probably safe to just delete it since it has no internal consumers. Maybe add a custom |
1a082eb to
88885c5
Compare
rgommers
left a comment
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.
All looks good to me now, let's get this in. The one CI failure is a network error - the Anaconda scientific-python bucket is struggling today.
Relevant issue #24507
Hi @rgommers @ngoldbaum,
This PR moves
lib.polynomialandlib.npyiomodules to private files and ensures that their public methods are only available through the main namespace. Forlib.npyiothere are two objects available from local namespace (they were used this way in docs and codebase) so fornpyiothere are_npyio_impl.pyandnpyio.py(and this is also the reason why so many lines changed - contents ofnpyio.pywere moved to_npyio_impl.py).