summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 376d09a..08a70a2 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -982,12 +982,12 @@ done. This can be done using the :c:func:`PyErr_Fetch` and
}
-Object Presentation
--------------------
-
.. index::
+ single: string; object representation
builtin: repr
- builtin: str
+
+Object Presentation
+-------------------
In Python, there are two ways to generate a textual representation of an object:
the :func:`repr` function, and the :func:`str` function. (The :func:`print`