summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-20 17:26:09 (GMT)
committerGitHub <noreply@github.com>2018-11-20 17:26:09 (GMT)
commit6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129 (patch)
tree2f463d73efc9dc867dfc1a041e7fc463a5fbdee8
parent6b73bb523a176123a819e4ebac3727d31d861515 (diff)
downloadcpython-6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129.zip
cpython-6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129.tar.gz
cpython-6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129.tar.bz2
bpo-9842: Add references for using "..." as a placeholder to the index. (GH-10330)
-rw-r--r--Doc/library/pprint.rst2
-rw-r--r--Doc/library/reprlib.rst3
-rw-r--r--Doc/library/textwrap.rst2
3 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst
index 3922a76..deadf18 100644
--- a/Doc/library/pprint.rst
+++ b/Doc/library/pprint.rst
@@ -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)
diff --git a/Doc/library/reprlib.rst b/Doc/library/reprlib.rst
index 5149bcf..1a0c1b0 100644
--- a/Doc/library/reprlib.rst
+++ b/Doc/library/reprlib.rst
@@ -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
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index 438007d..d254466 100644
--- a/Doc/library/textwrap.rst
+++ b/Doc/library/textwrap.rst
@@ -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