This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:00eli.benderskysetrecipients: + eli.bendersky, georg.brandl, jcea, larry, ezio.melotti, Arfrever, flox, santoso.wijaya, python-dev, einarfd, danielsh
2013-01-01 15:53:59eli.benderskysetmessageid: <1357055639.81.0.739252265035.issue16076@psf.upfronthosting.co.za>
2013-01-01 15:53:59eli.benderskylinkissue16076 messages
2013-01-01 15:53:59eli.benderskycreate