Skip to content

DEP: Deprecate load/dump functions in favour of pickle methods - #14256

Merged
mattip merged 1 commit into
numpy:masterfrom
kritisingh1:dep6
Aug 20, 2019
Merged

mattip merged 1 commit into
numpy:masterfrom
kritisingh1:dep6

Conversation

@kritisingh1

Copy link
Copy Markdown
Member

Related to #11521

Comment thread numpy/ma/core.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is the _pickle_warn function, which was handling the current DeprecationWarning, I think you may have missed it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So, I should remove _pickle_warn or warnings.warn?
I introduced the latter since this was consistent in all the deprecated functions I've seen so far.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The warning was already in place since a long time. You can just remove these functions entirely I think. After your change, there would be two warnings given.

@mattip mattip removed the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Aug 19, 2019
@mattip

mattip commented Aug 19, 2019

Copy link
Copy Markdown
Member

LGTM. @seberg is the formatting of the release note correct (first line beigns with a *)?

@seberg

seberg commented Aug 19, 2019

Copy link
Copy Markdown
Member

To be discussed. My plan is to not worry about it too much and allow both (it is easy to fix it up later) . I thought we used bullet points for these expired deprecations previously, but the fact is, that Chuck always added them later on.

Anyway: My plan is to change towncrier, that it does not add the bullets automatically, and then sort bullet points to the front of each section, so that it renders OK even if we end up with mixed style release notes.

@mattip
mattip merged commit de33c1c into numpy:master Aug 20, 2019
@mattip

mattip commented Aug 20, 2019

Copy link
Copy Markdown
Member

Thanks @kritisingh1

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.

4 participants