A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/340889.html below:

dictionary to file

dictionary to file dictionary to fileMax M maxm at mxm.dk
Fri Sep 16 07:34:24 EDT 2005
Enrique Palomo Jiménez wrote:
> Hi all,
> 
> I'm writing an application who needs to handle a lot of information of several files.
> So, i think the better way is design a batch process to catch that information in a dictionary and write it in a file.
> So, after that when a user wants to retrieve something, only with an execfile i'll have all the information avaiable.
> 
> Creating the file with pythonic syntax will be a hard job so,
> 
> is there some module to do that?
> is there a better way?


You can easily pickle a dictionary and save that to a file.

http://docs.python.org/lib/module-pickle.html

-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4