[Tutor] Saving class instances

Thomas Scrace t.scrace at gmail.com
Mon Jul 13 18:59:37 CEST 2009


I think I will give both approaches a go, since this is just a  
learning exercise anyway.  Thanks very much for your help.

Oh, and sorry for accidentally quoting the whole digest last time.   
Won't happen again!

Tom

On 13 Jul 2009, at 17:53, tutor-request at python.org wrote:

> I think you are better off using a database in this situation,  
> sqlite3 is a
> good choice since no extra setup is required. See
> http://docs.python.org/library/sqlite3.html
>
> And to answer your question, the python pickle module can save class
> instances, see http://docs.python.org/library/pickle.html
>
>
> Regards,
> Daniel Woodhouse

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090713/ded97a13/attachment.htm>


More information about the Tutor mailing list