[Python-checkins] r57820 - python/trunk/Doc/documenting/markup.rst
georg.brandl
python-checkins at python.org
Fri Aug 31 08:59:27 CEST 2007
Author: georg.brandl
Date: Fri Aug 31 08:59:27 2007
New Revision: 57820
Modified:
python/trunk/Doc/documenting/markup.rst
Log:
Document new shorthand notation for index entries.
Modified: python/trunk/Doc/documenting/markup.rst
==============================================================================
--- python/trunk/Doc/documenting/markup.rst (original)
+++ python/trunk/Doc/documenting/markup.rst Fri Aug 31 08:59:27 2007
@@ -724,14 +724,21 @@
entries are created).
pair
``pair: loop; statement`` is a shortcut that creates two index entries,
- namely ``loop; statement`` and ``statement; loop``.
+ namely ``loop!statement`` and ``statement!loop``.
triple
Likewise, ``triple: module; search; path`` is a shortcut that creates three
- index entries, which are ``module; search path``, ``search; path, module`` and
- ``path; module search``.
+ index entries, which are ``module!search path``, ``search!path, module`` and
+ ``path!module search``.
module, keyword, operator, object, exception, statement, builtin
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
+notation::
+
+ .. index:: BNF, grammar, syntax, notation
+
+This creates four index entries.
Grammar production displays
More information about the Python-checkins
mailing list