[Python-checkins] cpython (2.7): Doc fix. Mathematically correct sentence.
senthil.kumaran
python-checkins at python.org
Thu Sep 29 01:55:52 CEST 2011
http://hg.python.org/cpython/rev/f612b783bc17
changeset: 72513:f612b783bc17
branch: 2.7
parent: 72472:1fb5b0cc6367
user: Senthil Kumaran <senthil at uthcode.com>
date: Thu Sep 29 07:52:46 2011 +0800
summary:
Doc fix. Mathematically correct sentence.
files:
Doc/tutorial/datastructures.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -170,8 +170,8 @@
``filter(function, sequence)`` returns a sequence consisting of those items from
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 primes up
-to 25::
+otherwise, it is always a :class:`list`. For example, to compute a sequence of
+numbers not divisible by 2 and 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