Denis S. Otkidach wrote: > On Wed, 16 Jun 2004, Yermat wrote: > Y> >>> dict([(1,'a'),(2,'b')]) > Y> {1: 'a', 2: 'b'} > Y> > Y> list of tuples -> dict ! > > But unfortunately list({1: 'a', 2: 'b'}) -> [1, 2]. That's because it's coherent with what happens with iter(lst), I think. Anyway, {1: 'a', 2: 'b'}.items() -> [(1, 'a'), (2, 'b')]. -- Ciao, Matteo