There was an error while loading. Please reload this page.
2 parents ef1179e + 5b6a14d commit 3207271Copy full SHA for 3207271
1 file changed
Doc/faq/programming.rst
@@ -1313,7 +1313,7 @@ I want to do a complicated sort: can you do a Schwartzian Transform in Python?
1313
1314
The technique, attributed to Randal Schwartz of the Perl community, sorts the
1315
elements of a list by a metric which maps each element to its "sort value". In
1316
-Python, use the ``key`` argument for the :func:`sort()` function::
+Python, use the ``key`` argument for the :meth:`list.sort` method::
1317
1318
Isorted = L[:]
1319
Isorted.sort(key=lambda s: int(s[10:15]))
0 commit comments