summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-01-14 02:57:14 (GMT)
committerFred Drake <fdrake@acm.org>2001-01-14 02:57:14 (GMT)
commit34bafcc079809b373fa27257cbc4627e5acebb88 (patch)
tree9f5e574cad03e9269acf646457299c8d856c4e67 /Doc
parent3ad167ae34f47328c9054cea33edea3d5b2011bd (diff)
downloadcpython-34bafcc079809b373fa27257cbc4627e5acebb88.zip
cpython-34bafcc079809b373fa27257cbc4627e5acebb88.tar.gz
cpython-34bafcc079809b373fa27257cbc4627e5acebb88.tar.bz2
Fix a variety of minor nits and typos caught by Chris Ryland
<cpr@emsoftware.com>.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref5.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex
index d4fa3af..93f6724 100644
--- a/Doc/ref/ref5.tex
+++ b/Doc/ref/ref5.tex
@@ -264,9 +264,9 @@ attributeref: primary "." identifier
\end{verbatim}
The primary must evaluate to an object of a type that supports
-attribute references, e.g., a module or a list. This object is then
-asked to produce the attribute whose name is the identifier. If this
-attribute is not available, the exception
+attribute references, e.g., a module, list, or an instance. This
+object is then asked to produce the attribute whose name is the
+identifier. If this attribute is not available, the exception
\exception{AttributeError}\exindex{AttributeError} is raised.
Otherwise, the type and value of the object produced is determined by
the object. Multiple evaluations of the same attribute reference may
@@ -758,13 +758,13 @@ execution of a program.
The operators \keyword{in} and \keyword{not in} test for set
membership: every type can define membership in whatever way is
-appropriate. Traditionally, this interface has been tightly bound
+appropriate. Traditionally, this interface has been tightly bound to
the sequence interface, which is related in that presence in a sequence
can be usefully interpreted as membership in a set.
-For the list, tuple types, \code{\var{x} in \var{y}} is true if and only
-if there exists such an index \var{i} such that
-\code{var{x} == \var{y}[\var{i}]} is true.
+For the list and tuple types, \code{\var{x} in \var{y}} is true if and
+only if there exists such an index \var{i} such that
+\code{\var{x} == \var{y}[\var{i}]} is true.
For the Unicode and string types, \code{\var{x} in \var{y}} is true if
and only if there exists an index \var{i} such that \code{\var{x} ==