From: Georg Brandl Date: Fri, 5 Nov 2010 07:38:48 +0000 (+0000) Subject: Clarify. X-Git-Tag: v2.7.1rc1~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc3901e5bf1026393faa44924d0fcaa498bef997;p=thirdparty%2FPython%2Fcpython.git Clarify. --- diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index cbf3491000ce..226eadd61270 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 ...