summaryrefslogtreecommitdiff
path: root/Doc/reference/datamodel.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-11 18:34:22 -0500
committerR David Murray <rdmurray@bitdance.com>2014-02-11 18:34:22 -0500
commitd630e79cc7ac59bd11faa2a4ad4f1d03a2e95c11 (patch)
treed16c588be0ce929226ece0e4dc5b09a024397bc2 /Doc/reference/datamodel.rst
parent13b493e8a72395bd0b0ee3f72baf68aaa01704ab (diff)
downloadcpython-git-d630e79cc7ac59bd11faa2a4ad4f1d03a2e95c11.tar.gz
whatsnew: object.__format__ raises TypeError on non-empty string.
See issues #7994 and #9856. I also modified with wording of the format doc entry to better match what really happens, and added a versionchanged to the datamodel object.__format__ section.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r--Doc/reference/datamodel.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 4f19b37cd2..b2aa98bf71 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1226,6 +1226,10 @@ Basic customization
The return value must be a string object.
+ .. versionchanged:: 3.4
+ The __format__ method of ``object`` itself raises a :exc:`TypeError`
+ if passed any non-empty string.
+
.. _richcmpfuncs:
.. method:: object.__lt__(self, other)