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 scoder
Recipients eli.bendersky, ncoghlan, scoder, serhiy.storchaka
Date 2013-09-21.13:19:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> That means the patch could be simplified to just removing the root
> attribute without changing the result of calling close().


Returning the parse result from close() would still make it both more
consistent and easier to use (also from within iterparse()), but I agree
that that's more of a feature. If the goal is really just to get the bare
minimum API out that allows future extensions without introducing future
consistency issues, then I'm ok with that change, too.

However, note that the next lxml release will almost certainly have been
out for a while when Py3.4 finally lands (I'm currently planning the
release for next month, maybe early November), which means that the
complete, well integrated API, including target support for iterparse()
etc., will already have an established, publicly available implementation
when Py3.4 comes out. If ElementTree wants to have a word in the final
design of this feature, and wants to avoid introducing deliberate
incompatibilities in the future, then I'd prefer finishing up this
discussion before the next lxml release gets into beta state.
Date User Action Args
2013-09-21 13:19:57scodersetrecipients: + scoder, ncoghlan, eli.bendersky, serhiy.storchaka
2013-09-21 13:19:57scoderlinkissue18990 messages
2013-09-21 13:19:57scodercreate