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 Kronuz
Recipients Kronuz, eli.bendersky, scoder
Date 2013-09-10.13:49:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378820960.56.0.761098520663.issue18997@psf.upfronthosting.co.za>
In-reply-to
Content
On the tip of 3.3, I've found `Element.__getstate__` doesn't work and neither as `pickle.dumps(Element)` under certain circumstances.

This crashes:
  e1 = ElementTree().parse('houses.xml')
  e1.__getstate__()

This doesn't crash:
  e2 = ElementTree().parse('houses.xml')
  e2.text = 'some'
  e2.__getstate__()

But still, both of these crash:
  pickle.dumps(e1)
  pickle.dumps(e2)
History
Date User Action Args
2013-09-10 13:49:20Kronuzsetrecipients: + Kronuz, scoder, eli.bendersky
2013-09-10 13:49:20Kronuzsetmessageid: <1378820960.56.0.761098520663.issue18997@psf.upfronthosting.co.za>
2013-09-10 13:49:20Kronuzlinkissue18997 messages
2013-09-10 13:49:20Kronuzcreate