Explore Courses Blog Tutorials Interview Questions
0 votes
in Python by (47.6k 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

What would you recommend?

1 Answer

0 votes
by (106k points)

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

python -W ignore

Related questions

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

30.5k questions

32.5k answers


108k users

Browse Categories