Message179244
| Author |
eli.bendersky |
| Recipients |
Arfrever, danielsh, einarfd, eli.bendersky, ezio.melotti, flox, georg.brandl, jcea, larry, python-dev, santoso.wijaya, skrah |
| Date |
2013年01月07日.05:16:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1357535782.82.0.375149671088.issue16076@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月07日 05:16:22 | eli.bendersky | set | recipients:
+ eli.bendersky, georg.brandl, jcea, larry, ezio.melotti, Arfrever, skrah, flox, santoso.wijaya, python-dev, einarfd, danielsh |
| 2013年01月07日 05:16:22 | eli.bendersky | set | messageid: <1357535782.82.0.375149671088.issue16076@psf.upfronthosting.co.za> |
| 2013年01月07日 05:16:22 | eli.bendersky | link | issue16076 messages |
| 2013年01月07日 05:16:22 | eli.bendersky | create |
|