summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/abstract.rst4
-rw-r--r--Doc/c-api/newtypes.rst4
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/abstract.rst b/Doc/c-api/abstract.rst
index 7b5de86..34a0efd 100644
--- a/Doc/c-api/abstract.rst
+++ b/Doc/c-api/abstract.rst
@@ -143,8 +143,8 @@ Object Protocol
Compute a string representation of object *o*. Returns the string
representation on success, *NULL* on failure. This is the equivalent of the
- Python expression ``str(o)``. Called by the :func:`str` built-in function and
- by the :keyword:`print` statement.
+ Python expression ``str(o)``. Called by the :func:`str` built-in function
+ and, therefore, by the :func:`print` function.
.. cfunction:: PyObject* PyObject_Unicode(PyObject *o)
diff --git a/Doc/c-api/newtypes.rst b/Doc/c-api/newtypes.rst
index 0fe1daa..f1ab34e 100644
--- a/Doc/c-api/newtypes.rst
+++ b/Doc/c-api/newtypes.rst
@@ -645,8 +645,8 @@ type objects) *must* have the :attr:`ob_size` field.
The signature is the same as for :cfunc:`PyObject_Str`; it must return a string
or a Unicode object. This function should return a "friendly" string
- representation of the object, as this is the representation that will be used by
- the print statement.
+ representation of the object, as this is the representation that will be used,
+ among other things, by the :func:`print` function.
When this field is not set, :cfunc:`PyObject_Repr` is called to return a string
representation.