dictionary of list from a file

hanumizzle hanumizzle at gmail.com
Fri Oct 6 00:53:25 EDT 2006


On 4 Oct 2006 06:09:21 -0700, andrea.spitaleri at gmail.com
<andrea.spitaleri at gmail.com> wrote:
> Hi guys,
> this is my first post. my "programming" background is perlish scripting
> and now I am learning python. I need to create a dictionary of list
> from a file. Normally in perl I use to do like:

You may wish to consider some kind of data serialization. For python
specifically, there's pickle and cPickle, for many platforms there is
YAML (I recommend this; the py binding is really good), and as a last
resort you can use XML (yuck).



More information about the Python-list mailing list