[lxml-dev] Pickling objectified trees
Stefan Behnel
stefan_ml at behnel.de
Mon Jun 9 12:51:31 CEST 2008
Hi,
Christian Zagrodnick wrote:
> Well for pickling the root node all it really takes is to use the
> getroottree() for serializing. The fromstring method returns the right
> object anyway.
Not quite. Pickling works nicely through tostring(), but the unpickle
process must return an ElementTree and there isn't currently a straight
forward unpickle function that takes a string and returns an ElementTree.
I'll see how to fix that.
Stefan
More information about the lxml-dev
mailing list