Python, how to enable all warnings?
To enable warnings run python with the -Wdefault
or -Wd
switch.
import warnings
warnings.simplefilter('module')
Or:
import warnings
warnings.simplefilter('always')
The list of filters are in the docs
To enable warnings run python with the -Wdefault
or -Wd
switch.
import warnings
warnings.simplefilter('module')
Or:
import warnings
warnings.simplefilter('always')
The list of filters are in the docs