Hi, > > > > It seems like coherence isn't ready at all for Python 2.5... what is > > the correct way to cleanly have ElementTree working for as many > > versions of python as possible? Use something like this? (inspired by > > what Philippe committed to Elisa today) : > > > > if sys.hexversion >= 0x20500f0: > > import xml.etree.ElementTree > > else: > > import elementtree.ElementTree > >
I hope that if you do this, you do this in a completely separate compatibility module, and not all over the code, right ? :) Thomas
