Store multiple dictionaries in a file

Philipp H. Mohr phm4 at kent.ac.uk
Thu Jun 30 16:26:58 CEST 2005


Hello,

this is the solution I went for, as I am indeed not concernt about
security and the implementation is straight forward.

Thank you,
Phil


> If you're not worried about security, you could write the repr() of each
> dict to the file and get the values back by using the eval() function.
> repr() writes onto one line.
>
> If you're storing types without repr() representations this will not work.
>
> Jeremy



More information about the Python-list mailing list