Re: Store multiple dictionaries in a file
- From: Larry Bates <lbates@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 07:57:05 -0500
You might want to take a look at the shelve module.
-Larry
Philipp H. Mohr wrote:
> Hello,
>
> I would like to store multiple dictionaries in a file, if possible one per
> line. My code currently produces a new dictionary every iteration and
> passes it on to another peace of code. In order to be able to re-run some
> experiments at a later date I would like to store every dictionary in the
> same file.
> I looked at pickel, but that seems to require a whole file for each
> dictionary.
>
> It would be great if some one could tell me how to do that.
>
> Thank you,
> Phil
>
.
- References:
- Store multiple dictionaries in a file
- From: Philipp H. Mohr
- Store multiple dictionaries in a file
- Prev by Date: Re: Add methods to string objects.
- Next by Date: Re: need help with MySQLdb
- Previous by thread: Re: Store multiple dictionaries in a file
- Next by thread: Re: Store multiple dictionaries in a file
- Index(es):
Relevant Pages
|