[Python-Dev] Proposal: go back to enabling DeprecationWarning by default

Barry Warsaw barry at python.org
Mon Nov 6 13:12:51 EST 2017


On Nov 5, 2017, at 20:47, Nick Coghlan <ncoghlan at gmail.com> wrote:

>> warnings.silence_deprecations()
>> python -X silence-deprecations
>> PYTHONSILENCEDEPRECATIONS=x
> 
> It could be interesting to combine this with Tim's suggestion of
> putting an upper version limit on the silencing, so the above may look
> like:
> 
>    warnings.ignore_deprecations((3, 7))
>    python -X ignore-deprecations=3.7
>    PYTHONIGNOREDEPRECATIONS=3.7

That could be cool as long as we also support wildcards, e.g. defaults along the lines of my suggestions above to ignore everything.

-Barry


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171106/ca36fc50/attachment.sig>


More information about the Python-Dev mailing list