bkmeneguello
6/1/2016 - 5:10 PM

dictget.py

dictget = lambda d, *k: [d[i] for i in k]

'''
usage: v1, v2, vN = dictget(<dict>, 'key1', 'key2', 'keyN')
'''