I can't get Warnings module to work in Python 2.7 Inside a user defined function I have:
warnings.simplefilter('always', UserWarning) #added after wouldn't work
warnings.warn('WARNING: ....')
print "Why didn't the warning above show up?"
The print statement appears, but not the warning on the terminal. I made sure to do import warnings as well. Not sure what is happening.