Related link: http://svn.python.org/view/python/trunk/Lib/xmlcore/etree/

From what I can tell from the flurry of discussion on python-dev, Fred Lundh has formally offered the ElementTree library for inclusion into the Python standard library. The Python-devers appear to have accepted his offer as the link above points to a spot in the Python SVN repository where ElementTree lives in the Python 2.5 branch. The discussion on python-dev appears to be mostly in favor of such inclusion. From this blog entry of Fred’s, it appears that cElementTree has also made it in as well. I didn’t see it in the Lib/xmlcore/etree directory, but I guess it would have to live somewhere else as it is a compiled module.

I find this news quite exciting. I’ve been enjoying ElementTree (and cElementTree) for a little while now, probably over a year. I don’t recall ever wondering, “Why isn’t this thing in the standard library?” although I should have. Practically every new environment that I set up receives the ElementTree libraries as a matter of course. ElementTree is elegant, Pythonic, and easy to handle. cElementTree is all those things, and blazingly fast, as well.

Excellent work, Fred. And if I might add it, congratulations. ElementTree is entirely worthy of inclusion in the standard library.