[Python-checkins] cpython: Add NEWS and docs for #9856
andrew.svetlov
python-checkins at python.org
Sun Dec 23 14:12:31 CET 2012
http://hg.python.org/cpython/rev/2f6ec67636b8
changeset: 80992:2f6ec67636b8
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Sun Dec 23 15:12:19 2012 +0200
summary:
Add NEWS and docs for #9856
files:
Doc/library/functions.rst | 4 ++++
Misc/NEWS | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -543,6 +543,10 @@
: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])
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list