Aug. 28, 2006
11:03 a.m.
Paul Moore wrote:
One little addition to the elementtree docs. In the overview section, adding a paragraph explaining best practice for importing the module might be useful.
good idea.
PS This actually begs the question - are there platforms where xml.etree.cElementTree is not available?
not really; I usually recommend checking for xml.etree.cElementTree cElementTree elementtree.ElementTree in that order, if you just want to get the "best" implementation. (there are some subtle differences between the C implementations and the Python implementations, so people who do non-standard stuff may want to use xml.etree.ElementTree, but I don't think that has to be mentioned in the overview) </F>