Re: Store multiple dictionaries in a file
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Store multiple dictionaries in a file

From: Philipp H. Mohr <phm4@kent.ac.uk>
Date: Thu Jun 30 2005 - 16:26:58 CEST

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
Received on Thu Sep 29 16:40:07 2005