[Python-Dev] elementtree in stdlib (original) (raw)
Giovanni Bajo rasky at develer.com
Fri Apr 7 08:55:28 CEST 2006
- Previous message: [Python-Dev] elementtree in stdlib
- Next message: [Python-Dev] elementtree in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] elementtree in stdlib
- Next message: [Python-Dev] elementtree in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]