[Python] How to disable Python warnings?

Discussão em 'Python' iniciado por Stack, Maio 1, 2025.

  1. Stack

    Stack Membro Participativo

    I am working with code that throws a lot of (for me at the moment) useless warnings using the warnings library. Reading (/scanning) the documentation I only found a way to disable warnings for single functions. But I don't want to change so much of the code.

    Is there a flag like python -no-warning foo.py?

    What would you recommend?

    Continue reading...

Compartilhe esta Página