0 votes
1 view
in Python by (47.7k points)

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 maybe a flag like python -no-warning foo.py?

What would you recommend?

1 Answer

0 votes
by (107k points)

To disable python warning you can use the -W option below is the following command:-

python -W ignore foo.py

Related questions

0 votes
1 answer
asked Oct 8 in Python by Sammy (47.7k points)
0 votes
1 answer
0 votes
1 answer
asked Jul 6 in Python by Sammy (47.7k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...