A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063508.html below:

[Python-Dev] elementtree in stdlib

[Python-Dev] elementtree in stdlib [Python-Dev] elementtree in stdlibGreg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 7 02:47:53 CEST 2006
Trent Mick 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

--
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4