]> granicus.if.org Git - python/commitdiff
Add NEWS and docs for #9856
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 23 Dec 2012 13:12:19 +0000 (15:12 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 23 Dec 2012 13:12:19 +0000 (15:12 +0200)
Doc/library/functions.rst
Misc/NEWS

index 07765ce3be713fb07c26871abd87768f4008f83d..c52dc06b30f1b1832909a7b18dc0cd98fe161196 100644 (file)
@@ -543,6 +543,10 @@ are always available.  They are listed here in alphabetical order.
    :exc:`TypeError` exception is raised if the method is not found or if either
    the *format_spec* or the return value are not strings.
 
+   .. versionadded:: 3.4
+      ``object().__format__(format_spec)`` raises :exc:`TypeError`
+      if *format_spec* is not empty string.
+
 
 .. _func-frozenset:
 .. function:: frozenset([iterable])
index b175c42d341e61af20222ae5c94927dc573fc6c9..b9c42f475f01f3f363ef501d339d1ca701e26c73 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1?
 Core and Builtins
 -----------------
 
+- Issue #9856: Replace deprecation warinigs with raising TypeError
+  in object.__format__. Patch by Florent Xicluna.
+
 - Issue #16597: In buffered and text IO, call close() on the underlying stream
   if invoking flush() fails.