list to dict

Peter Hansen peter at engcorp.com
Wed Jun 16 16:03:05 CEST 2004


Bart Nessux wrote:

> What is the easiest/fastest way to build a dictionary from a list? The 
> list contains 100,000 entries.

A dictionary has key/value pairs.  How do you want to map
the elements of your list to this format?  In pairs, or
are you using them all as keys, or something else?

-Peter



More information about the Python-list mailing list