From: Benjamin Peterson Date: Sun, 14 Dec 2008 17:26:04 +0000 (+0000) Subject: fix missing bracket X-Git-Tag: v2.7a1~2544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e1c67e86660c17a9860470947bf460f298e5b5e;p=thirdparty%2FPython%2Fcpython.git fix missing bracket --- diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 792344dac2cf..b717f80bf054 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -728,7 +728,7 @@ indexes at which certain conditions are met:: if line.strip() == '': print 'Blank line at line #%i' % i -``sorted(iterable, [cmp=None], [key=None], [reverse=False)`` collects all the +``sorted(iterable, [cmp=None], [key=None], [reverse=False])`` collects all the elements of the iterable into a list, sorts the list, and returns the sorted result. The ``cmp``, ``key``, and ``reverse`` arguments are passed through to the constructed list's ``.sort()`` method. ::