diff options
author | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 (GMT) |
commit | 6911e3ce3f72af759908b869b73391ea00d328e2 (patch) | |
tree | 5d4ff6070cb3f0f46f0a31ee4805b41053a06b48 /Doc/c-api/newtypes.rst | |
parent | c9879246a2dd33a217960496fdf4606cb117c6a6 (diff) | |
download | cpython-6911e3ce3f72af759908b869b73391ea00d328e2.zip cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.gz cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.bz2 |
Convert all print statements in the docs.
Diffstat (limited to 'Doc/c-api/newtypes.rst')
-rw-r--r-- | Doc/c-api/newtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
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. |