Unverified Kaydet (Commit) 6c48bf2d authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka Kaydeden (comit) GitHub

bpo-9842: Add references for using "..." as a placeholder to the index. (GH-10330)

üst 6b73bb52
...@@ -30,6 +30,8 @@ The :mod:`pprint` module defines one class: ...@@ -30,6 +30,8 @@ The :mod:`pprint` module defines one class:
.. First the implementation class: .. First the implementation class:
.. index:: single: ...; placeholder
.. class:: PrettyPrinter(indent=1, width=80, depth=None, stream=None, *, \ .. class:: PrettyPrinter(indent=1, width=80, depth=None, stream=None, *, \
compact=False) compact=False)
......
...@@ -42,6 +42,9 @@ In addition to size-limiting tools, the module also provides a decorator for ...@@ -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 detecting recursive calls to :meth:`__repr__` and substituting a placeholder
string instead. string instead.
.. index:: single: ...; placeholder
.. decorator:: recursive_repr(fillvalue="...") .. decorator:: recursive_repr(fillvalue="...")
Decorator for :meth:`__repr__` methods to detect recursive calls within the Decorator for :meth:`__repr__` methods to detect recursive calls within the
......
...@@ -268,6 +268,8 @@ hyphenated words; only then will long words be broken if necessary, unless ...@@ -268,6 +268,8 @@ hyphenated words; only then will long words be broken if necessary, unless
.. versionadded:: 3.4 .. versionadded:: 3.4
.. index:: single: ...; placeholder
.. attribute:: placeholder .. attribute:: placeholder
(default: ``' [...]'``) String that will appear at the end of the output (default: ``' [...]'``) String that will appear at the end of the output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment