> > > What's wrong with this one though? It would totally make sense to > > me... > > > > > > a = [1,2,3] > > > c = {x: '' for x in a} > > > > Try this one : > > > > c = dict( [ ( x, '' ) for x in a ] ) > > > > > and, in Python 2.3 > > c = sets.Set([1,2,3]) Also, in Python 2.3: c = dict.fromkeys(a, '') Raymond Hettinger