[Python-checkins] python/nondist/peps pep-0290.txt,1.15,1.16
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Fri Dec 3 17:23:48 CET 2004
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21908
Modified Files:
pep-0290.txt
Log Message:
Fix argument order in an example
Index: pep-0290.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0290.txt,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- pep-0290.txt 16 Aug 2004 03:14:53 -0000 1.15
+++ pep-0290.txt 3 Dec 2004 16:23:45 -0000 1.16
@@ -167,7 +167,7 @@
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``
More information about the Python-checkins
mailing list