title: How to disable Python warnings?
body: <p>I am working with code that throws a lot of (for me at the moment) useless warnings using the <a href="https://docs.python.org/3/library/warnings.html" rel="noreferrer"><code>warnings</code></a> library. Reading (/scanning) the documentation I only found a way <a href="https://docs.python.org/3/library/warnings.html#temporarily-suppressing-warnings" rel="noreferrer">to disable warnings for single functions</a>. But I don't want to change so much of the code.</p>
  <p>Is there a flag like <code>python -no-warning foo.py</code>?</p>
  <p>What would you recommend?</p>