Fix argument order in an example

This commit is contained in:
Raymond Hettinger 2004-12-03 16:23:45 +00:00
parent 881b4d15c4
commit 9518a04556
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ Pattern::
Typical contexts::
sort(studentrecords, key=attrgetter('gpa')) # set a sort field
map(studentrecords, attrgetter('lastname')) # extract a field
map(attrgetter('lastname'), studentrecords) # extract a field
Locating: ``grep lambda *.py``