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
replace DeprecationWarning (et al?) by FutureWarning so that users see them #310
Labels
Milestone
Comments
I already used FuturWarning for ipfp. Replacing DeprecationWarning by FuturWarning is my favorite option. |
Yes, but in that case, you did not loose PyCharm's feature anyway. |
which feature? |
In user code, it strikes through functions which are deprecated |
a few more options, for completeness:
with warnings.catch_warnings():
warnings.simplefilter("ignore") But I think simply using a FutureWarning is our best option anyway. |
gdementen
changed the title
DeprecationWarning (and a few others) are hidden by default
replace DeprecationWarning (et al?) by FutureWarning so that users see them
Aug 8, 2017
alixdamman
added a commit
to alixdamman/larray
that referenced
this issue
Aug 28, 2017
gdementen
pushed a commit
that referenced
this issue
Aug 31, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... but we want our users to see them.
There are several options to see them, none of which seems very appealing.
... but this is tedious and they will not do it.
a bit hard to explain how to do that but less tedious. The problem is that they get lots of deprecation warnings from internal code (eg. ipython using deprecated zmq api), which makes it almost useless.
in that case, we have what we want when users run their models but loose a nifty PyCharm feature which strikes through all functions which "raise" a DeprecationWarning.
PS: This is the case since 2.7 and the reasoning was that end-users (those using programs written in Python) should not see those kinds of warnings and that developers should run with -W anyway.
The text was updated successfully, but these errors were encountered: