[Python-3000-checkins] r67314 - python/branches/py3k/Doc/reference/expressions.rst

raymond.hettinger python-3000-checkins at python.org
Fri Nov 21 11:40:51 CET 2008


Author: raymond.hettinger
Date: Fri Nov 21 11:40:51 2008
New Revision: 67314

Log:
Fix minor typos.

Modified:
   python/branches/py3k/Doc/reference/expressions.rst

Modified: python/branches/py3k/Doc/reference/expressions.rst
==============================================================================
--- python/branches/py3k/Doc/reference/expressions.rst	(original)
+++ python/branches/py3k/Doc/reference/expressions.rst	Fri Nov 21 11:40:51 2008
@@ -1043,7 +1043,7 @@
   program.
 
 Comparison of objects of the differing types depends on whether either
-of the types provide explicit support for the comparison.  Most numberic types
+of the types provide explicit support for the comparison.  Most numeric types
 can be compared with one another, but comparisons of :class:`float` and
 :class:`Decimal` are not supported to avoid the inevitable confusion arising            
 from representation issues such as ``float('1.1')`` being inexactly represented
@@ -1058,8 +1058,8 @@
 in s`` returns the negation of ``x in s``.  All built-in sequences and set types
 support this as well as dictionary, for which :keyword:`in` tests whether a the
 dictionary has a given key. For container types such as list, tuple, set,
-frozenset, dict, or collections.deque, the expression ``x in y`` equivalent to
-``any(x is e or x == e for val e in y)``.
+frozenset, dict, or collections.deque, the expression ``x in y`` is equivalent
+to ``any(x is e or x == e for val e in y)``.
 
 For the string and bytes types, ``x in y`` is true if and only if *x* is a
 substring of *y*.  An equivalent test is ``y.find(x) != -1``.  Empty strings are


More information about the Python-3000-checkins mailing list