Add Misc/NEWS entry and relevant doc change for issue 10271.
authorBrett Cannon <brett@python.org>
Mon, 18 Jul 2011 02:25:50 +0000 (19:25 -0700)
committerBrett Cannon <brett@python.org>
Mon, 18 Jul 2011 02:25:50 +0000 (19:25 -0700)
Doc/library/warnings.rst
Misc/NEWS

index 8af19a282eebc9ee28f631495a3c67c5cf761172..8387f5a15fce8bf56938592450b415d79d006c68 100644 (file)
@@ -339,8 +339,7 @@ Available Functions
    Write a warning to a file.  The default implementation calls
    ``formatwarning(message, category, filename, lineno, line)`` and writes the
    resulting string to *file*, which defaults to ``sys.stderr``.  You may replace
-   this function with an alternative implementation by assigning to
-   ``warnings.showwarning``.
+   this function with any callable by assigning to ``warnings.showwarning``.
    *line* is a line of source code to be included in the warning
    message; if *line* is not supplied, :func:`showwarning` will
    try to read the line specified by *filename* and *lineno*.
index 3301d3f445a798fa026f6587270921a13dd913c9..a456bf36c5612e65e976391de148716ff4755d69 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@ What's New in Python 3.3 Alpha 1?
 Core and Builtins
 -----------------
 
+- Issue #10271: Allow warnings.showwarning() be any callable.
+
 - Issue #11627: Fix segfault when __new__ on a exception returns a non-exception
   class.