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

2017年11月06日 10:15:56 -0800

On Nov 5, 2017, at 20:47, Nick Coghlan <[email protected]> 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

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to