How to access active warning filters list?

Viewed 44

In python, after I set some filter with warnings.filterwarning (or some package I import does), how can I access the list of active filters? I tried sys.warnoptions but it always gives me an empty list.

1 Answers

I found it looking at the source code. It's warnings.filters.

Related