[Python-checkins] r77402 - in python/trunk: Doc/library/warnings.rst Lib/test/test_ascii_formatd.py Lib/test/test_exceptions.py Lib/warnings.py Misc/NEWS Python/_warnings.c

Nick Coghlan ncoghlan at gmail.com
Sun Jan 10 07:47:47 CET 2010


brett.cannon wrote:
> Author: brett.cannon
> Date: Sun Jan 10 03:56:19 2010
> New Revision: 77402
> 
> Log:
> DeprecationWarning is now silent by default.
> 
> This was originally suggested by Guido, discussed on the stdlib-sig mailing
> list, and given the OK by Guido directly to me. What this change essentially
> means is that Python has taken a policy of silencing warnings that are only
> of interest to developers by default. This should prevent users from seeing
> warnings which are triggered by an application being run against a new
> interpreter before the app developer has a chance to update their code.
> 
> Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin
> for helping with the issue.

+1, but reposting this explanation to python-dev would probably be a
good idea.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------


More information about the Python-checkins mailing list