Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3207271

Browse files
committed
Merge from 3.5
2 parents ef1179e + 5b6a14d commit 3207271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ I want to do a complicated sort: can you do a Schwartzian Transform in Python?
13131313

13141314
The technique, attributed to Randal Schwartz of the Perl community, sorts the
13151315
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::
1316+
Python, use the ``key`` argument for the :meth:`list.sort` method::
13171317

13181318
Isorted = L[:]
13191319
Isorted.sort(key=lambda s: int(s[10:15]))

0 commit comments

Comments
 (0)