mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Fix subitem markup.
This commit is contained in:
parent
9856e05d56
commit
3acd6d5f58
1 changed files with 7 additions and 7 deletions
|
@ -707,7 +707,7 @@ consists of a type and a value, separated by a colon.
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
single: execution!context
|
single: execution; context
|
||||||
module: __main__
|
module: __main__
|
||||||
module: sys
|
module: sys
|
||||||
triple: module; search; path
|
triple: module; search; path
|
||||||
|
@ -720,18 +720,18 @@ The possible entry types are:
|
||||||
|
|
||||||
single
|
single
|
||||||
Creates a single index entry. Can be made a subentry by separating the
|
Creates a single index entry. Can be made a subentry by separating the
|
||||||
subentry text with a semicolon (this is also used below to describe what
|
subentry text with a semicolon (this notation is also used below to describe
|
||||||
entries are created).
|
what entries are created).
|
||||||
pair
|
pair
|
||||||
``pair: loop; statement`` is a shortcut that creates two index entries,
|
``pair: loop; statement`` is a shortcut that creates two index entries,
|
||||||
namely ``loop!statement`` and ``statement!loop``.
|
namely ``loop; statement`` and ``statement; loop``.
|
||||||
triple
|
triple
|
||||||
Likewise, ``triple: module; search; path`` is a shortcut that creates three
|
Likewise, ``triple: module; search; path`` is a shortcut that creates three
|
||||||
index entries, which are ``module!search path``, ``search!path, module`` and
|
index entries, which are ``module; search path``, ``search; path, module`` and
|
||||||
``path!module search``.
|
``path; module search``.
|
||||||
module, keyword, operator, object, exception, statement, builtin
|
module, keyword, operator, object, exception, statement, builtin
|
||||||
These all create two index entries. For example, ``module: hashlib`` creates
|
These all create two index entries. For example, ``module: hashlib`` creates
|
||||||
the entries ``module!hashlib`` and ``hashlib!module``.
|
the entries ``module; hashlib`` and ``hashlib; module``.
|
||||||
|
|
||||||
For index directives containing only "single" entries, there is a shorthand
|
For index directives containing only "single" entries, there is a shorthand
|
||||||
notation::
|
notation::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue