XML Processing

Tim Golden mail at timgolden.me.uk
Thu Sep 18 10:06:20 EDT 2008


Robert Rawlins wrote:
>> Some is going to kick themselves when they realise
>> that ElementTree *is* built in to Python 2.5
>>
>> http://docs.python.org/whatsnew/modules.html#SECTION0001420000000000000000
> 
> Tim, Andrii,
> 
> Thanks for the heads up on that! I hadn't noticed they're made it part of
> the platform modules, that's excellent news.
> 
> In theory I should just be able to amend my import paths and we'll be good
> to go, no install external modules.

I imagine I'm not the only person with conditional
imports of this type:

try:
  from xml.etree import cElementTree as ET
except ImportError:
  from elementtree import ElementTree as ET


TJG



More information about the Python-list mailing list