-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
API: Update arraypad
,arraysetops
, ufunclike
and utils
namespaces in np.lib
#24567
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
API: Update arraypad
,arraysetops
, ufunclike
and utils
namespaces in np.lib
#24567
Conversation
arraypad
,arraysetops
, ufunclike
and utils namespaces in
lib`arraypad
,arraysetops
, ufunclike
and utils
namespaces in lib
arraypad
,arraysetops
, ufunclike
and utils
namespaces in lib
arraypad
,arraysetops
, ufunclike
and utils
namespaces in np.lib
6b6f09c
to
8ce7e9e
Compare
|
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.
I'm seeing some downstream use of patterns like this:
unique_src_ids = np.lib.arraysetops.unique(src_ids)
It would probably be worthwhile to add errors redirecting people to the main namespace or whichever other migration path is appropriate for that submodule if they try to access any np.lib
submodules we're removing.
This could be a followup though, no need to hold up merging this, which looks good otherwise except for the one issue I pointed out in the docs. |
@ngoldbaum I think that's a good point - I added it here to np.lib.arraysetops.unique(src_ids) The message says:
|
dbf38c5
to
35c133a
Compare
f29c280
to
08e086c
Compare
Let's merge this one as well so the other |
Relevant issue #24507
Hi @rgommers @ngoldbaum,
This PR moves
lib.arraypad
,lib.arraysetops
,lib.ufunclike
andlib.utils
modules to private files and ensures that their public methods are only available through the main namespace. There are no additional functions available from their local namespaces.I decided to join those four submodules together as they have small number of functions (e.g.
arraypad
has only one).