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 nikratio
Recipients effbot, eli.bendersky, mark, nikratio, scoder
Date 2014-01-21.01:18:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390267131.01.0.0190368160824.issue9521@psf.upfronthosting.co.za>
In-reply-to
Content
For the record: I disagree that this is an enhancement. ElementTree supports PIs as first-class tree elements. They can be added, inspected, removed, and written out when serializing into XML. Only when reading in XML, they are silently dropped. I think this is a bug, no matter how rarely people might stumble upon it in practice.

If there was no support for PIs at all (i.e., they couldn't be created as tree objects) I'd agree with you that this is an enhancement.


Unless there are objections, I'll try to work on a patch that either documents that PIs are lost, or optionally adds them to the tree when parsing (depending on how difficult that turns out to be).
History
Date User Action Args
2014-01-21 01:18:51nikratiosetrecipients: + nikratio, effbot, scoder, mark, eli.bendersky
2014-01-21 01:18:51nikratiosetmessageid: <1390267131.01.0.0190368160824.issue9521@psf.upfronthosting.co.za>
2014-01-21 01:18:50nikratiolinkissue9521 messages
2014-01-21 01:18:49nikratiocreate