]> granicus.if.org Git - python/commit
DeprecationWarning is now silent by default.
authorBrett Cannon <bcannon@gmail.com>
Sun, 10 Jan 2010 02:56:19 +0000 (02:56 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 10 Jan 2010 02:56:19 +0000 (02:56 +0000)
commit6fdd3dcb6a9998dbe7b707d7a3726733cc03681a
tree35f061054f51f3beffbde6edc85657dcbbddec97
parent3ad57e2625601701b1a98324890095f411965af3
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.
Doc/library/warnings.rst
Lib/test/test_ascii_formatd.py
Lib/test/test_exceptions.py
Lib/warnings.py
Misc/NEWS
Python/_warnings.c