On Tue, Dec 14, 2010 at 14:18, C.T. Matsumoto <c.t.matsum...@gmail.com>wrote:

> Hello,
>
> 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.
>

http://docs.python.org/library/pickle.html is your friend.

HTH.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to