[Python-checkins] r86190 - python/branches/release27-maint/Doc/tutorial/datastructures.rst
georg.brandl
python-checkins at python.org
Fri Nov 5 08:38:48 CET 2010
Author: georg.brandl
Date: Fri Nov 5 08:38:48 2010
New Revision: 86190
Log:
Clarify.
Modified:
python/branches/release27-maint/Doc/tutorial/datastructures.rst
Modified: python/branches/release27-maint/Doc/tutorial/datastructures.rst
==============================================================================
--- python/branches/release27-maint/Doc/tutorial/datastructures.rst (original)
+++ python/branches/release27-maint/Doc/tutorial/datastructures.rst Fri Nov 5 08:38:48 2010
@@ -170,7 +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 some primes::
+otherwise, it is always a :class:`list`. For example, to compute primes up
+to 25::
>>> def f(x): return x % 2 != 0 and x % 3 != 0
...
More information about the Python-checkins
mailing list