Greg Ewing <[EMAIL PROTECTED]> 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com