Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@@ -2,7 +2,7 @@ | |||
A collection of functions for collecting, analyzing and plotting | |||
financial data. User contributions welcome! | |||
This module is deprecated in1.4 and will be moved to `mpl_toolkits` | |||
This module is deprecated in2.0 and will be moved to `mpl_toolkits` |
There was a problem hiding this comment.
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" ?
Looks good modulo minor word smithnig. Who ever merges, please remember to backport to v2.x |
QuLogic commentedOct 18, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Backported to v2.x via83292f5. |
MAINT finance module is deprecated
@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 |
Maybe the deprecation warning needs to be inside each function in the module, instead of at the module level? |
we could just wrap the import in a warning context and snarf the warning? IPython merged my PR to remove most of the pylab importsipython/ipython#9998 |
I think@tacaswell's solution is the best. |
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. |
Uh oh!
There was an error while loading.Please reload this page.
Here is a deprecation for the finance module.
Supersedes#7071
We should probably make a call for contributor out.