[Tutor] Generating a python file

शंतनू shantanoo at gmail.com
Tue Dec 14 09:54:00 CET 2010

On Tue, Dec 14, 2010 at 14:18, C.T. Matsumoto <c.t.matsumoto at 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.

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

More information about the Tutor mailing list