-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Deprecate the aliased constants in the top-level namespaces #13705
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
Comments
I agree with the sentiment. I don't think they're used much, they are indeed worse, and clutter up the namespace. The maintenance overhead of these is really low, so I would suggest to perhaps remove them only is we do a 2.0 release, but happy to see them deprecated (docs or warning, no preference) now. |
Note this would require modifying |
#6103 is the poster-child for |
Can this be closed now following gh-24306? |
Indeed, thanks @lucascolley |
Uh oh!
There was an error while loading. Please reload this page.
Continuing from #13696.
In the spirit of
I think we should deprecate (either via a warning, or via using the word "deprecated" in the docstring):
np.Inf
,np.infty
,np.Infinity
,np.PINF
- these are worse ways to spellnp.inf
, and the doc already recommends the latternp.NINF
- this is a worse way to spell-np.inf
np.NAN
,np.NaN
- these are worse ways to spellnp.nan
, and the doc already recommends the latternp.NZERO
,np.PZERO
- these are weirdly capitalized compared to the other recommended constants, and are shorter as0.0
and-0.0
The text was updated successfully, but these errors were encountered: