diff options
| author | Georg Brandl <georg@python.org> | 2010-11-05 07:38:48 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-11-05 07:38:48 (GMT) |
| commit | fc3901e5bf1026393faa44924d0fcaa498bef997 (patch) | |
| tree | cf1cb02ed5b1a4ee99d2566ad276430eb9970ea5 | |
| parent | 6e1029428528a348d3a0592fd83f51a7994abb1c (diff) | |
| download | cpython-fc3901e5bf1026393faa44924d0fcaa498bef997.zip cpython-fc3901e5bf1026393faa44924d0fcaa498bef997.tar.gz cpython-fc3901e5bf1026393faa44924d0fcaa498bef997.tar.bz2 | |
Clarify.
| -rw-r--r-- | Doc/tutorial/datastructures.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index cbf3491..226eadd 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -170,7 +170,8 @@ There are three built-in functions that are very useful when used with lists: ``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 ... |
