[Python-checkins] Fix typo in object.__format__ docs (GH-19504)

Heshy Roskes webhook-mailer at python.org
Sat Apr 25 21:57:18 EDT 2020


https://github.com/python/cpython/commit/ef33712baa2d15878b35a02fbd6ab301c999a5fe
commit: ef33712baa2d15878b35a02fbd6ab301c999a5fe
branch: master
author: Heshy Roskes <hroskes at jhu.edu>
committer: GitHub <noreply at github.com>
date: 2020-04-25T21:57:09-04:00
summary:

Fix typo in object.__format__ docs (GH-19504)

files:
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 1c2706362b718..c5a7f046992dd 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1350,7 +1350,7 @@ Basic customization
 
    .. versionchanged:: 3.7
       ``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather
-      than ``format(str(self), '')``.
+      than ``format(str(x), '')``.
 
 
 .. _richcmpfuncs:



More information about the Python-checkins mailing list