@@ -1082,7 +1082,7 @@ \subsection{Mapping Types \label{typesmapping}}
10821082or other mutable types (that are compared by value rather than by
10831083object identity) may not be used as keys.
10841084Numeric types used for keys obey the normal rules for numeric
1085- comparison: if two numbers compare equal (e.g. \code {1} and
1085+ comparison: if two numbers compare equal (such as \code {1} and
10861086\code {1.0}) then they can be used interchangeably to index the same
10871087dictionary entry.
10881088
@@ -1102,6 +1102,7 @@ \subsection{Mapping Types \label{typesmapping}}
11021102 \ttindex {clear()}
11031103 \ttindex {copy()}
11041104 \ttindex {has_key()}
1105+ \ttindex {fromkeys()}
11051106 \ttindex {items()}
11061107 \ttindex {keys()}
11071108 \ttindex {update()}
@@ -1268,7 +1269,7 @@ \subsection{File Objects
12681269\end {methoddesc }
12691270
12701271\begin {methoddesc }[file]{next}{}
1271- A file object is its own iterator, i.e. \code {iter(\var {f})} returns
1272+ A file object is its own iterator, for example \code {iter(\var {f})} returns
12721273\var {f} (unless \var {f} is closed). When a file is used as an
12731274iterator, typically in a \keyword {for} loop (for example,
12741275\code {for line in f: print line}), the \method {next()} method is
@@ -1506,8 +1507,8 @@ \subsubsection{Functions \label{typesfunctions}}
15061507the function \var {f} was defined).
15071508
15081509Function objects also support getting and setting arbitrary
1509- attributes, which can be used to, e.g. attach metadata to functions.
1510- Regular attribute dot-notation is used to get and set such
1510+ attributes, which can be used, for example, to attach metadata to
1511+ functions. Regular attribute dot-notation is used to get and set such
15111512attributes. \emph {Note that the current implementation only supports
15121513function attributes on user-defined functions. Function attributes on
15131514built-in functions may be supported in the future. }
0 commit comments