How to Run a Python Program with Warnings Without Ignoring Them? or Best Way to Handle Warnings When

20 Replies, 1175 Views

Yo, for real tho, the `warnings` module is your friend.

If you python run program with warnings and wanna see 'em all, just do:
```python
import warnings
warnings.simplefilter("always")
```
Now *every* warning shouts at you.

But if that's too much, `"default"` or `"once"` are less spammy.

Messages In This Thread



Users browsing this thread: 1 Guest(s)