On 2022-01-18 23:14, Gregory P. Smith wrote:
Our stdlib unittest already enables warnings by default per https://bugs.python.org/issue10535.
Getting the right people to pay attention to them is always the hard part.
I wonder if we can do a bit better in that regard. When I install 3rd party packages, I create a usercustomize.py file that uses filterwarnings() to turn off all the warnings I don't care about. I don't know how but maybe we could make that easier to do. That way, you don't get buried in warnings coming from code you don't maintain. Additionally, maybe we should be more aggressive about showing PendingDeprecationWarning if it comes from code that seems to be written by the user, e.g. outside site-packages or not from a package installed by pip. The exact logic of that is complicated though.