Created
December 17, 2010 20:49
-
-
Save prestontimmons/745682 to your computer and use it in GitHub Desktop.
Using lambda to sort a list of structured data in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using a lambda to sort a list of structured data in Python | |
sorted(list_o_stuff, key=lambda k: k.key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment