Store multiple dictionaries in a file

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


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

Thank you,

> 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