Eli Bendersky added the comment:

I think that changing the _elementtree's Element's name to match the Python 
version, and then making sure the same serialized object is returned - is a 
worthy option to try.

Then it will hopefully "just work". When pickle deserializes a user-defined 
object that says it's a xml.etree.ElementTree.Element, it will try to import 
Element from xml.etree.ElementTree and should get the accelerated class. On 
machines without acceleration it will get the Python class.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16076>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to