]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-9842: Add references for using "..." as a placeholder to the index. (GH-10330)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 20 Nov 2018 18:08:07 +0000 (10:08 -0800)
committerGitHub <noreply@github.com>
Tue, 20 Nov 2018 18:08:07 +0000 (10:08 -0800)
(cherry picked from commit 6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/pprint.rst
Doc/library/reprlib.rst
Doc/library/textwrap.rst

index 3922a768311c658a072d9e8fa6862fd06e8391f4..deadf1820851595777a4e6fb398538ad81e2841a 100644 (file)
@@ -30,6 +30,8 @@ The :mod:`pprint` module defines one class:
 .. First the implementation class:
 
 
+.. index:: single: ...; placeholder
+
 .. class:: PrettyPrinter(indent=1, width=80, depth=None, stream=None, *, \
                          compact=False)
 
index 0905b982cd830a2f9de448da9c6dba2f93d3bddb..dbe2a7182aec9530a7bc104caefacf81a8fdf203 100644 (file)
@@ -42,6 +42,9 @@ In addition to size-limiting tools, the module also provides a decorator for
 detecting recursive calls to :meth:`__repr__` and substituting a placeholder
 string instead.
 
+
+.. index:: single: ...; placeholder
+
 .. decorator:: recursive_repr(fillvalue="...")
 
    Decorator for :meth:`__repr__` methods to detect recursive calls within the
index 438007d0028d86eb28cfddb91ae2dd6c14a1503d..d254466c9a320d8ea9e13b28de8261cd42e314c8 100644 (file)
@@ -268,6 +268,8 @@ hyphenated words; only then will long words be broken if necessary, unless
       .. versionadded:: 3.4
 
 
+   .. index:: single: ...; placeholder
+
    .. attribute:: placeholder
 
       (default: ``' [...]'``) String that will appear at the end of the output