diff options
| author | R David Murray <rdmurray@bitdance.com> | 2014-02-11 18:34:22 -0500 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2014-02-11 18:34:22 -0500 |
| commit | d630e79cc7ac59bd11faa2a4ad4f1d03a2e95c11 (patch) | |
| tree | d16c588be0ce929226ece0e4dc5b09a024397bc2 /Doc/reference/datamodel.rst | |
| parent | 13b493e8a72395bd0b0ee3f72baf68aaa01704ab (diff) | |
| download | cpython-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.rst | 4 |
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) |
