[Python-Dev] elementtree in stdlib
Giovanni Bajo
rasky at develer.com
Fri Apr 7 08:55:28 CEST 2006
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>> try:
>> import xml.etree.ElementTree as ET # in python >=2.5
>> except ImportError:
> > ... etc ad nauseam
>
> For situations like this I've thought it might
> be handy to be able to say
>
> import xml.etree.ElementTree or cElementTree or \
> elementtree.ElementTree or lxml.etree as ET
Astonishingly cute. +1.
Giovanni Bajo
More information about the Python-Dev
mailing list