]> granicus.if.org Git - python/commit
Merged revisions 77402,77505,77510 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Mon, 28 Jun 2010 00:01:59 +0000 (00:01 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 28 Jun 2010 00:01:59 +0000 (00:01 +0000)
commit7ab4b8d3a2e7e91f742a1339a5b8d2988f4b81b6
tree940fba46823c8435d0ffd637e48ef49d7a83bf02
parentf23e3744412ac8943bddaace3dc0e85522518319
Merged revisions 77402,77505,77510 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77402 | brett.cannon | 2010-01-09 20:56:19 -0600 (Sat, 09 Jan 2010) | 12 lines

  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.
........
  r77505 | brett.cannon | 2010-01-14 14:00:28 -0600 (Thu, 14 Jan 2010) | 7 lines

  The silencing of DeprecationWarning was not taking -3 into consideration. Since
  Py3K warnings are DeprecationWarning by default this was causing -3 to
  essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
  used.

  Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help.
........
  r77510 | brett.cannon | 2010-01-14 19:31:45 -0600 (Thu, 14 Jan 2010) | 1 line

  Remove C++/C99-style comments.
........
Doc/library/warnings.rst
Lib/warnings.py
Python/_warnings.c