durusmail: durus-users: Pickling/exporting objects
Pickling/exporting objects
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-03
2005-03-03
2005-03-03
2005-03-03
2005-03-03
2005-03-04
2005-03-04
2005-03-04
2005-03-04
2005-03-04
2005-03-04
2005-03-05
Pickling/exporting objects
A.M. Kuchling
2005-03-02
On Wed, Mar 02, 2005 at 11:04:08AM -0500, David Binger wrote:
> > * Is the approach taken pure evil, or only slightly naughty?
> I'd say very naughty.

Ah, middle ground.

> The basic traversal and write out to another file is just what
> pack does already.  I think the only difference is that pack
> always starts with the root instance, and you want to
> control the starting point, right?

Correct.

> Maybe the write-a-transaction-with-everything-traversable-from object X
> to file foo should be factored out of the existing pack function.

That seems a good approach.  I'll look at creating a .copy_object()
method containing most of pack()'s internals.

--amk


reply