Skip to content
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

DEP: remove deprecated select behaviour #14583

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Conversation

mattip
Copy link
Member

@mattip mattip commented Sep 23, 2019

xref gh-11521. This behaviour was deprecated in NumPy 1.9.

I am not sure about how we refer to expired deprecations. "Remove", "Resolve", "Retire" ?

@rgommers
Copy link
Member

I am not sure about how we refer to expired deprecations. "Remove", "Resolve", "Retire" ?

I believe the file should be expired.rst rather than deprecation.rst, and in language I'd say "feature X was removed" or "we removed support for ..."

"convert to bools."
warnings.warn(msg, DeprecationWarning, stacklevel=3)
raise ValueError(
'invalid entry {} in condlist: should be boolean ndarray'.format(i))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a TypeError? "Expired" is great, and right now they are all formatted as bullets too (whidch I think works well for the expired ones). Sorry to make this abit of a rabbit hole, but unless there are obvious tests elsewhere, they should probably be morpfed into assert_raises...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Member

@seberg seberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, LGTM. Thanks matti, just waiting for tests, otherwise we can merge (or you can also).

@seberg seberg merged commit cb89f88 into numpy:master Sep 26, 2019
@mattip mattip deleted the select-deprecation branch June 8, 2020 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants