Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MAINT finance module is deprecated #7295

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

Merged
merged 2 commits into from
Oct 18, 2016
Merged

MAINT finance module is deprecated #7295

merged 2 commits into from
Oct 18, 2016

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Oct 17, 2016

Here is a deprecation for the finance module.

Supersedes #7071
We should probably make a call for contributor out.

@NelleV NelleV changed the title MAINT finance module is deprecated [MRG] MAINT finance module is deprecated Oct 17, 2016
@@ -2,7 +2,7 @@
A collection of functions for collecting, analyzing and plotting
financial data. User contributions welcome!

This module is deprecated in 1.4 and will be moved to `mpl_toolkits`
This module is deprecated in 2.0 and will be moved to `mpl_toolkits`
Copy link
Member

Choose a reason for hiding this comment

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

"and has been moved to it's own project" ?

@tacaswell tacaswell changed the title [MRG] MAINT finance module is deprecated [MRG+1] MAINT finance module is deprecated Oct 18, 2016
@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Oct 18, 2016
@tacaswell
Copy link
Member

Looks good modulo minor word smithnig.

Who ever merges, please remember to backport to v2.x

@QuLogic QuLogic changed the title [MRG+1] MAINT finance module is deprecated MAINT finance module is deprecated Oct 18, 2016
@QuLogic QuLogic merged commit 33f8412 into matplotlib:master Oct 18, 2016
@QuLogic
Copy link
Member

QuLogic commented Oct 18, 2016

Backported to v2.x via 83292f5.

QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Oct 18, 2016
@anntzer
Copy link
Contributor

anntzer commented Oct 18, 2016

@NelleV Actually this interferes somewhat awkwardly with the fact that IPython still imports pylab (#7186 (comment), fixed as of IPython 5.2). Now you get the deprecation warning when running %matplotlib in IPython...

@efiring
Copy link
Member

efiring commented Oct 18, 2016

Maybe the deprecation warning needs to be inside each function in the module, instead of at the module level?

@tacaswell
Copy link
Member

we could just wrap the import in a warning context and snarf the warning?

IPython merged my PR to remove most of the pylab imports ipython/ipython#9998

@anntzer
Copy link
Contributor

anntzer commented Oct 18, 2016

I think @tacaswell's solution is the best.

@NelleV
Copy link
Member Author

NelleV commented Oct 18, 2016

I think having the warning at least at module level is important, as some people sometimes import stuff from our modules (totally unrelated to our code) which is going to break as well. (That used to be a reason not to remove unused imports at the top of some of our modules).

I could also be very aggressive and add deprecation warnings to all the functions of the module. That's extremely easy to do with our deprecated decorator.

I'll look at ipython's issue with our deprecation warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants