You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
numpy float multiplied by a string does not raise a TypeError #5919
In [1]: import warnings
In [2]: warnings.simplefilter("always")
In [3]: "x" * np.float64(3.5)
/home/njs/.user-python2.7-64bit-3/bin/ipython:1: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
#!/home/njs/.user-python2.7-64bit-3/bin/python
Out[3]: 'xxx'
We really need to do something about DeprecationWarnings not showing up interactively, it bites people constantly :-/
Activity
njsmith commentedon May 27, 2015
We really need to do something about
DeprecationWarnings not showing up interactively, it bites people constantly :-/njsmith commentedon May 27, 2015
(Closing b/c there should be an issue for turning that DeprecationWarning into an error at some point... though I haven't double-checked :-))
ngoldbaum commentedon May 27, 2015
I agree that the way
DeprecationWarningis hidden by default makes it pretty much useless. Thanks for clearing that up!jakirkham commentedon Feb 3, 2016
Interesting coming across this today. Yeah, I think I agree. Did an issue ever get opened or confirmed for this?