Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8cdee96

Browse files
committed
Dictionaries are created using the "{...}" notation, not the "..."
notation. Problem reported by Magnus L. Hetland <[email protected]>.
1 parent 3366d1c commit 8cdee96

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

Doc/ref/ref3.tex

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -339,21 +339,20 @@ \section{The standard type hierarchy\label{types}}
339339
\begin{description}
340340

341341
\item[Dictionaries]
342-
These represent finite sets of objects indexed by nearly arbitrary
343-
values. The only types of values not acceptable as keys are values
344-
containing lists or dictionaries or other mutable types that are
345-
compared by value rather than by object identity, the reason being
346-
that the efficient implementation of dictionaries requires a key's
347-
hash value to remain constant.
342+
These\obindex{dictionary} represent finite sets of objects indexed by
343+
nearly arbitrary values. The only types of values not acceptable as
344+
keys are values containing lists or dictionaries or other mutable
345+
types that are compared by value rather than by object identity, the
346+
reason being that the efficient implementation of dictionaries
347+
requires a key's hash value to remain constant.
348348
Numeric types used for keys obey the normal rules for numeric
349349
comparison: if two numbers compare equal (e.g., \code{1} and
350350
\code{1.0}) then they can be used interchangeably to index the same
351351
dictionary entry.
352352

353-
Dictionaries are mutable; they are created by the \code{...}
354-
notation (see section \ref{dict}, ``Dictionary Displays'').
355-
\obindex{dictionary}
356-
\obindex{mutable}
353+
Dictionaries are \obindex{mutable}mutable; they are created by the
354+
\code{\{...\}} notation (see section \ref{dict}, ``Dictionary
355+
Displays'').
357356

358357
The extension modules \module{dbm}\refstmodindex{dbm},
359358
\module{gdbm}\refstmodindex{gdbm}, \module{bsddb}\refstmodindex{bsddb}
@@ -362,12 +361,11 @@ \section{The standard type hierarchy\label{types}}
362361
\end{description} % Mapping types
363362

364363
\item[Callable types]
365-
These are the types to which the function call operation (see section
366-
\ref{calls}, ``Calls'') can be applied:
364+
These\obindex{callable} are the types to which the function call
365+
operation (see section \ref{calls}, ``Calls'') can be applied:
367366
\indexii{function}{call}
368367
\index{invocation}
369368
\indexii{function}{argument}
370-
\obindex{callable}
371369

372370
\begin{description}
373371

0 commit comments

Comments
 (0)