[Python-checkins] cpython (2.7): Small logical fix in filter() example description.

georg.brandl python-checkins at python.org
Sun Oct 6 11:41:04 CEST 2013


http://hg.python.org/cpython/rev/c2e4ab7ed26e
changeset:   86045:c2e4ab7ed26e
branch:      2.7
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 06 11:41:36 2013 +0200
summary:
  Small logical fix in filter() example description.

files:
  Doc/tutorial/datastructures.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -171,7 +171,7 @@
 the sequence for which ``function(item)`` is true. If *sequence* is a
 :class:`string` or :class:`tuple`, the result will be of the same type;
 otherwise, it is always a :class:`list`. For example, to compute a sequence of
-numbers not divisible by 2 and 3::
+numbers not divisible by 2 or 3::
 
    >>> def f(x): return x % 2 != 0 and x % 3 != 0
    ...

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list