[Python-checkins] cpython (3.5): Fix link in programming FAQ.

berker.peksag python-checkins at python.org
Wed Jun 1 16:46:03 EDT 2016


https://hg.python.org/cpython/rev/dbe69f54b09c
changeset: 101588:dbe69f54b09c
branch: 3.5
parent: 101586:92fd6935e882
user: Berker Peksag <berker.peksag at gmail.com>
date: Wed Jun 01 13:54:33 2016 -0700
summary:
 Fix link in programming FAQ.
The example actually uses the sort method of list object.
files:
 Doc/faq/programming.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -1312,7 +1312,7 @@
 
 The technique, attributed to Randal Schwartz of the Perl community, sorts the
 elements of a list by a metric which maps each element to its "sort value". In
-Python, use the ``key`` argument for the :func:`sort()` function::
+Python, use the ``key`` argument for the :meth:`list.sort` method::
 
 Isorted = L[:]
 Isorted.sort(key=lambda s: int(s[10:15]))
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /