I\'ve got a dict that has a whole bunch of entries. I\'m only interested in a select few of them. Is there an easy way to prune all the other ones out?
dict
You can do that with project function from my funcy library:
from funcy import project small_dict = project(big_dict, keys)
Also take a look at select_keys.