Can't pickle IntElement/StringElement objects
Environment info:
{{{
Ubuntu 9.10
lxml.etree: (2, 2, 4, 0)
libxml used: (2, 7, 5)
libxml compiled: (2, 7, 5)
libxslt used: (1, 1, 24)
libxslt compiled: (1, 1, 24)
}}}
How to reproduce:
{{{
import pickle
from lxml import objectify
pickle.
pickle.
pickle.
pickle.
}}}
Example traceback:
{{{
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
Pickler(file, protocol).dump(obj)
File "/usr/lib/
self.save(obj)
File "/usr/lib/
rv = reduce(self.proto)
File "/usr/lib/
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle StringElement objects
}}}
I haven't filed a bug report since I don't know if this is the expected behavior or not.
Question information
- Language:
- English Edit question
- Status:
- Open
- For:
- lxml Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask koba for more information if necessary.