How to disable the filtering of the warnings?
I would like to output several times the same warning, but a filter in the library avoids to output more than once the same warning.
import warnings
for i in range(2):
warnings.warn("warning message")
output:
C:\Users\me\my_script.py:4: UserWarning: warning message
warnings.warn("warning message")
The documentation is here: https://docs.python.org/2/library/warnings.html
Apparently I have to set "always" in the tuple at the entry of the filter, I don't know how to do so, and where to access this tuple.
warnings.simplefilter("always")?