Message178736
| Author |
eli.bendersky |
| Recipients |
Arfrever, danielsh, einarfd, eli.bendersky, ezio.melotti, flox, georg.brandl, jcea, larry, python-dev, santoso.wijaya |
| Date |
2013年01月01日.15:53:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1357055639.81.0.739252265035.issue16076@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Other thoughts.
I'm not sure why you're surprised the C->Python pickle/unpickle works. You've changed the type name from Element to _elementtree.Element, so I would guess Python always uses the C version to unpickle as well. Can you debug to verify what actually goes on under the hood? Why did you change the class name, by the way, I don't think it's a valid change at least for 3.3 in terms of backwards compatibility.
Regarding that compatibility, and even easier idea would be for the C pickle to return the same __dict__ implicitly gathered from the Python version, and then only one version of the unpickle is required. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月01日 15:54:00 | eli.bendersky | set | recipients:
+ eli.bendersky, georg.brandl, jcea, larry, ezio.melotti, Arfrever, flox, santoso.wijaya, python-dev, einarfd, danielsh |
| 2013年01月01日 15:53:59 | eli.bendersky | set | messageid: <1357055639.81.0.739252265035.issue16076@psf.upfronthosting.co.za> |
| 2013年01月01日 15:53:59 | eli.bendersky | link | issue16076 messages |
| 2013年01月01日 15:53:59 | eli.bendersky | create |
|