read file to a dictionary

rohit rohitsethidce at gmail.com
Wed May 23 19:16:43 EDT 2007


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




More information about the Python-list mailing list