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 merrellb
Recipients merrellb
Date 2009-10-26.23:32:31
SpamBayes Score 6.909837e-08
Marked as misclassified No
Message-id <1256599953.85.0.50468157726.issue7215@psf.upfronthosting.co.za>
In-reply-to
Content
In the pure python ElementTree, the tag passed to the end() tag is
verified to be closing the last tag opened (self._last).

This cElementTree performs no such validation and closes the last tag
regardless of what tag is passed to the method.

In my mind this raises a couple questions beyond simply fixing this
discrepancy.
1)  Why make this tag mandatory if it has no effect in the cElementTree
version (and in the pure python version is only used to verify the user
isn't confused what tag they are closing)
2)  Could the argument be removed, simply closing the last tag if not
present?
3)  Or could the behavior be changed to actually influence which tag is
closed, allowing one to close all tags out to a specific
outer/encompassing tag (much like close(), closes all tags)?

-brian
History
Date User Action Args
2009-10-26 23:32:33merrellbsetrecipients: + merrellb
2009-10-26 23:32:33merrellbsetmessageid: <1256599953.85.0.50468157726.issue7215@psf.upfronthosting.co.za>
2009-10-26 23:32:31merrellblinkissue7215 messages
2009-10-26 23:32:31merrellbcreate