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

Skip to content

Commit 74c8e55

Browse files
committed
SF bug #804280: fromkeys is not listed in index
1 parent 614438a commit 74c8e55

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/lib/libstdtypes.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ \subsection{Mapping Types \label{typesmapping}}
10821082
or other mutable types (that are compared by value rather than by
10831083
object identity) may not be used as keys.
10841084
Numeric 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
10871087
dictionary 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
12731274
iterator, 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}}
15061507
the function \var{f} was defined).
15071508

15081509
Function 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
15111512
attributes. \emph{Note that the current implementation only supports
15121513
function attributes on user-defined functions. Function attributes on
15131514
built-in functions may be supported in the future.}

0 commit comments

Comments
 (0)