Message51878
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 :) |
|
Date |
User |
Action |
Args |
2007-08-23 15:56:34 | admin | link | issue1660179 messages |
2007-08-23 15:56:34 | admin | create | |
|