Repository navigation
DEP: Deprecate the normed argument to histogramdd to match histogram - #11397
eric-wieser wants to merge 1 commit into
Conversation
|
The main problem with deprecating old keywords is that there is no way for folks who want to maintain compatibility with old numpy to use the new keywords. I like having a compatible set, but I think it will be a long time before we can remove any old arguments. |
|
Yep, I don't expect I'm thinking that in a couple releases we promote the |
|
@charris: Too late for 1.15 now that the rc is out? |
|
I'm skeptical of deprecating |
|
Will |
|
Probably not. |
|
@rgommers Thoughts? |
|
@charris I agree that deprecating This would anyway be my opinion I think, since we preferably shouldn't deprecate things for mostly cosmetic reasons. But in this case, there's a long history of us messing in bad ways with |
|
@eric-wieser Let's just remove the deprecation. If we are never going to remove the keyword there is no point in deprecating it. |
I don't agree with this - it's still a method to dictate the "one obvious way to do it" upon users writing new code, without breaking those maintaining old code. Either way, I think introducing the density argument is a net positive however we handle |
We have a long-standing policy of deprecating for two releases, then removing. There is nothing wrong with a doc-only deprecation, and it also clearly signal what the one correct way is. |
|
Closing in favor of #11529, which has been merged. |
Is this formalized anywhere? If not, perhaps it should be. |
|
We should probably have a deprecation NEP. |
|
There was a policy on the old Trac somewhere, written originally by @rkern IIRC. Our current docs don't have it.
I can volunteer to (co-)write such a NEP. It should be broader than the old text I think; also what are and aren't good reasons for deprecation, etc. |
The existence of aliases violates OOWTDI, and histogramdd::normed suggests false similarity with histogram::normed.
|
Reopening with an incremental diff (which can't be pushed when it's closed), in case we come back to this as an example after writing the NEP. I'd like a stronger way to check that I'm not using inadvisable-but-non-deprecated features/apis without having to read the docs for every function. Perhaps |
081050a to
e5db683
Compare
|
Can we close this? |
|
Sure, not worth arguing about this |
Only emit pending deprecation warnings, to give people a few releases to switch over, rather than making them have to pick a numpy version to squash warnings.
Fixes gh-4371Leaving this as PendingDeprecationWarning since we're late in the release cycle - the important thing is to get the new argument name in, not to make noise about the old one.