[issue31975] Add a default filter for DeprecationWarning in __main__

Antoine Pitrou report at bugs.python.org
Wed Nov 8 04:38:43 EST 2017


Antoine Pitrou <pitrou at free.fr> added the comment:

> Thus the following will start emitting DeprecationWarning by default again (as they did in 2.6 and earlier):
> - experiments at the REPL

This is backwards.  If there's one place where you *don't* want stderr polluted with warnings (or any kind of logging), it's an interactive prompt.

More generally, I think this entire proposal is unsound, and needs a PEP written to make its case clearly.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31975>
_______________________________________


More information about the Python-bugs-list mailing list