Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93818c7 commit 5b6a14dCopy full SHA for 5b6a14d
1 file changed
Doc/faq/programming.rst
@@ -1312,7 +1312,7 @@ I want to do a complicated sort: can you do a Schwartzian Transform in Python?
1312
1313
The technique, attributed to Randal Schwartz of the Perl community, sorts the
1314
elements of a list by a metric which maps each element to its "sort value". In
1315
-Python, use the ``key`` argument for the :func:`sort()` function::
+Python, use the ``key`` argument for the :meth:`list.sort` method::
1316
1317
Isorted = L[:]
1318
Isorted.sort(key=lambda s: int(s[10:15]))
0 commit comments