[Tutor] Generating a python file

Evans Anyokwu onyxtic at gmail.com
Tue Dec 14 13:13:48 CET 2010


On Tue, Dec 14, 2010 at 12:06 PM, Peter Otten <__peter__ at web.de> wrote:

> C.T. Matsumoto wrote:
>
> > Is it possible to create files containing python code in the same sort
> > of way that you can generate text files.
> >
> > A simple example perhaps could be a persistent dictionary. Keys and
> > values are written to the dictionary in a file, that can be imported
> > later.
>
> For simple human-readable dictionaries the established format is json, see
>
> http://docs.python.org/library/json.htm
>
> json files look similar to python dictionaries, but there are libraries to
> read or write them for other programming languages, too.
>
> Peter
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>

Peter,

The page you linked to above was not found.
Could you check the link again -

--
Evans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101214/41029a9f/attachment.html>


More information about the Tutor mailing list