summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-23 18:50:38 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-23 18:50:38 (GMT)
commit8cdee961bf48d831454e244175d22e8b2db52620 (patch)
treeb6e0b086b071e5d0fddc76480230c0afd4c226d6 /Doc/ref
parent3366d1c7e613da33f95f49bc52dfbbe67a08cf4e (diff)
downloadcpython-8cdee961bf48d831454e244175d22e8b2db52620.zip
cpython-8cdee961bf48d831454e244175d22e8b2db52620.tar.gz
cpython-8cdee961bf48d831454e244175d22e8b2db52620.tar.bz2
Dictionaries are created using the "{...}" notation, not the "..."
notation. Problem reported by Magnus L. Hetland <mlh@idt.ntnu.no>.
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref3.tex24
1 files changed, 11 insertions, 13 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 233e416..028018d 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -339,21 +339,20 @@ There is currently a single intrinsic mapping type:
\begin{description}
\item[Dictionaries]
-These represent finite sets of objects indexed by nearly arbitrary
-values. The only types of values not acceptable as keys are values
-containing lists or dictionaries or other mutable types that are
-compared by value rather than by object identity, the reason being
-that the efficient implementation of dictionaries requires a key's
-hash value to remain constant.
+These\obindex{dictionary} represent finite sets of objects indexed by
+nearly arbitrary values. The only types of values not acceptable as
+keys are values containing lists or dictionaries or other mutable
+types that are compared by value rather than by object identity, the
+reason being that the efficient implementation of dictionaries
+requires a key's hash value to remain constant.
Numeric types used for keys obey the normal rules for numeric
comparison: if two numbers compare equal (e.g., \code{1} and
\code{1.0}) then they can be used interchangeably to index the same
dictionary entry.
-Dictionaries are mutable; they are created by the \code{...}
-notation (see section \ref{dict}, ``Dictionary Displays'').
-\obindex{dictionary}
-\obindex{mutable}
+Dictionaries are \obindex{mutable}mutable; they are created by the
+\code{\{...\}} notation (see section \ref{dict}, ``Dictionary
+Displays'').
The extension modules \module{dbm}\refstmodindex{dbm},
\module{gdbm}\refstmodindex{gdbm}, \module{bsddb}\refstmodindex{bsddb}
@@ -362,12 +361,11 @@ provide additional examples of mapping types.
\end{description} % Mapping types
\item[Callable types]
-These are the types to which the function call operation (see section
-\ref{calls}, ``Calls'') can be applied:
+These\obindex{callable} are the types to which the function call
+operation (see section \ref{calls}, ``Calls'') can be applied:
\indexii{function}{call}
\index{invocation}
\indexii{function}{argument}
-\obindex{callable}
\begin{description}