[Tutor] URGENT doubt!!!!

Python python at venix.com
Wed Mar 1 17:29:48 CET 2006


On Wed, 2006-03-01 at 17:13 +0100, Joaquin Sanchez Sanchez wrote:
> I have a doubt
>  
> I have some modules in python, and in one of them, i have to
> dictionarys. In them, i have some vars yhat I want to save before
> clossing my session, ande then, in a new session, i want to load them.
>  
> I have heard about "pickle"
> How does it work?I dont understand the help page example
> How have I to used it?
> Another suggestion?

I think the shelve module better fits what you are trying to do.  It
will store the pickle into a file for later retrieval and possible
modification.

http://docs.python.org/lib/module-shelve.html

Note that you should be using strings for the shelve keys.

>  
> THANKS A LOT
> 
> 
> ______________________________________________________________________
> 
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-- 
Lloyd Kvam
Venix Corp



More information about the Tutor mailing list