Persistent objects
Dan Perl
danperl at rogers.com
Sun Dec 12 18:40:04 EST 2004
"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote in message
news:7xis77q1t7.fsf_-_ at ruckus.brouhaha.com...
> I've had this recurring half-baked desire for long enough that I
> thought I'd post about it, even though I don't have any concrete
> proposals and the whole idea is fraught with hazards.
>
> Basically I wish there was a way to have persistent in-memory objects
> in a Python app, maybe a multi-process one. So you could have a
> persistent dictionary d, and if you say
> d[x] = Frob(foo=9, bar=23)
> that creates a Frob instance and stores it in d[x]. Then if you
> exit the app and restart it later, there'd be a way to bring d back
> into the process and have that Frob instance be there.
I haven't used it myself, but this sounds to me a lot like metakit
(http://www.equi4.com/metakit.html). Have you considered that and does it
fit your needs?
Dan
More information about the Python-list
mailing list