diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-13 09:40:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-13 09:40:52 (GMT) |
commit | 7e19dbc92ec06a987eaae72f7cdfd32006aa4960 (patch) | |
tree | 29a0b2c806b128c9c111b09b0c01ba3107e88bce /Doc/whatsnew | |
parent | a66f9c6bb134561a24374f10e8c35417d356ce14 (diff) | |
download | cpython-7e19dbc92ec06a987eaae72f7cdfd32006aa4960.zip cpython-7e19dbc92ec06a987eaae72f7cdfd32006aa4960.tar.gz cpython-7e19dbc92ec06a987eaae72f7cdfd32006aa4960.tar.bz2 |
bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506)
rather than `format(str(self), '')`.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 57fd4e4..3a001d7 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -89,6 +89,10 @@ Other Language Changes a name are now supported. (Contributed by Serhiy Storchaka in :issue:`30024`.) +* ``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than + ``format(str(self), '')``. + (Contributed by Serhiy Storchaka in :issue:`28974`.) + New Modules =========== |