On Wed, 16 Jun 2004, Yermat wrote: Y> > What is the easiest/fastest way to build a dictionary from Y> a list? The Y> > list contains 100,000 entries. Y> > Y> > Thanks, Y> > Bart Y> 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]. -- Denis S. Otkidach http://www.python.ru/ [ru]