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.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/HB4ZSI5UWSI3R3ASTIOCAYNU7YPBB57F/
Code of Conduct: http://python.org/psf/codeofconduct/