I have a list of 2-tuples like this:
l = [(\'a\', 1), (\'b\', 2)]
and I want to be able to map this onto a dictionary object, so that I can
>>> l = [('a', 1), ('b', 2)] >>> d = dict(l) >>> d['a'] 1