Help in Placing Object in Memory

sjdevnull at yahoo.com sjdevnull at yahoo.com
Tue Mar 27 14:04:55 EDT 2007


On Mar 27, 10:33 am, "Clement" <jeba.r... at gmail.com> wrote:
> I am newbie to Python...... i want to know something..........
>
> can i place an object in disk instead of placing in Main Memory...?
>
> If possible, can you please explain with some scripts...?
>
> can two python script share a common object....?


POSH allows shared objects, but it's not built-in.  http://poshmodule.sourceforge.net/

If you're only looking for persistence (and not sharing), there's the
(standard) shelve module.  http://docs.python.org/lib/module-shelve.html
If your need to share objects is fairly minimal and not performance-
sensitive, you might be able to get by with shelves, sync, and file
locking or some other locking.




More information about the Python-list mailing list