We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str
1 parent a74892c commit bb86d1dCopy full SHA for bb86d1d
Doc/library/stdtypes.rst
@@ -1517,7 +1517,8 @@ multiple fragments.
1517
depends on whether *encoding* or *errors* is given, as follows.
1518
1519
If neither *encoding* nor *errors* is given, ``str(object)`` returns
1520
- :meth:`object.__str__() <object.__str__>`, which is the "informal" or nicely
+ :meth:`type(object).__str__(object) <object.__str__>`,
1521
+ which is the "informal" or nicely
1522
printable string representation of *object*. For string objects, this is
1523
the string itself. If *object* does not have a :meth:`~object.__str__`
1524
method, then :func:`str` falls back to returning
0 commit comments