Message172665
| Author |
santoso.wijaya |
| Recipients |
Arfrever, einarfd, eli.bendersky, ezio.melotti, jcea, santoso.wijaya, serhiy.storchaka |
| Date |
2012年10月11日.17:07:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1349975237.2.0.236001858243.issue16076@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
OTOH, xml.etree.cElementTree.Element in Python 3.2 and earlier has never been pickleable, either.
Python 3.2.3+ (3.2:24499eebbc2f, Oct 10 2012, 13:54:45)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from xml.etree.cElementTree import Element
>>> repr(Element)
'<built-in function Element>'
>>> import pickle
>>> pickle.dumps(Element('foo'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'Element'>: attribute lookup builtins.Element failed |
|