Re:Ask HN: Good Python codebases to read?
by ectoplasm on Thursday July 16, 2015 @04:34PM
(#9899738)
I bet you two would be good friends IRL.
Re:Ask HN: Good Python codebases to read?
by aaronchall on Saturday July 18, 2015 @07:55PM
(#9909473)
I'm sure we would. I'll buy the first drink. :D
Thanks!
> Did you know there's an `operator.itemgetter` function that does that?
Yes, I'm quite aware! Are you aware the "useless" functional solution with lambda is two characters shorter?
Cause you're apparently not aware that I was demonstrating a use-case for lambdas as one-off functions that are passed to other functions (which is an abstract concept from the particular function used), and you didn't demonstrate how list comprehensions or generators make them not-needed. Of course, that's because it was a leading question and the answer is that the concepts are orthogonal so it cannot be demonstrated.