Best way to create a Dictionary from file of Key-Value pairs?

Equis Uno ir4u4 at yahoo.com
Sun Feb 29 21:22:32 CET 2004


Hi,

Assume I'm given a 100k file full of key-value pairs:

date,value
26-Feb-04,36.47
25-Feb-04,36.43
24-Feb-04,36.30
23-Feb-04,37.00
20-Feb-04,37.00
19-Feb-04,37.87

What is the best way to copy this data into a Dictionary object?

-moi



More information about the Python-list mailing list