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

Barry Warsaw barry at python.org
Tue Nov 7 21:04:00 EST 2017

Antoine Pitrou wrote:
> On Mon, 6 Nov 2017 23:23:25 +1000
>> - tweak the default warning filters to turn DeprecationWarning back on
>> for __main__ only
> Thats sounds error-prone.  I'd rather have them on by default
> everywhere.

If DeprecationWarnings were on by default, and setuptools were modified
to silence them in entry point generated mains, and we had a simple API
to easily silence them for manually written mains, wouldn't that handle
the majority of relevant use cases nicely?


More information about the Python-Dev mailing list