read file to a dictionary
James Stroud
jstroud at mbi.ucla.edu
Wed May 23 20:46:26 EDT 2007
rohit wrote:
> i want to implement a dictionary in python
> the query is :
> without explicitly doing the following steps
> 1. reading from file to list
> 2. processing list to dictionary
> is there a module or a built in function that helps me "read" a file
> directly into a dictionary
> or any module that implements the above 2 steps
>
> thanks
> rohit
>
No one can actually figure out exactly what you want because you speak
in partial thoughts and vagaries. However, my amazing mind-reading
abilities are picking up the following paranormal conveyances:
ConfigParser
cPickle
shelve
I leave it to you to interpret them as I am just a messenger.
James
More information about the Python-list
mailing list