dabeaz/python-cookbook — pull request #3 by claudejrogers (2013-08-25 00:00:51+00:00)
Title: Use 'key' kwarg in min/max/sorted when calculating with dicts

Instead of zipping the values and keys of a dictionary to
sort or find the min/max, why not use the 'key' kwarg of those
functions along with dict.items()?