]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in object.__format__ docs (GH-19504)
authorHeshy Roskes <hroskes@jhu.edu>
Sun, 26 Apr 2020 01:57:09 +0000 (21:57 -0400)
committerGitHub <noreply@github.com>
Sun, 26 Apr 2020 01:57:09 +0000 (21:57 -0400)
Doc/reference/datamodel.rst

index 1c2706362b718f5b879bd08f2f635e1231d89cc8..c5a7f046992dd11041e14ebadb6d0529dc031267 100644 (file)
@@ -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: