This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author catlee
Recipients
Date 2007-02-15.20:12:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
lambda k: k[0][1] is fine for this example.

I just thought that since operator.itemgetter existed that there should be a way to represent a series of __getitem__ calls in a similar way...and also that a way of composing functions would be generally useful to have in the stdlib.

FWIW, I think that the compose function would make it simpler to compose a set of functions that is determined at run-time.

It's also my experience that newbies have a hard time with lambda's :)
History
Date User Action Args
2007-08-23 15:56:34adminlinkissue1660179 messages
2007-08-23 15:56:34admincreate