[Tutor] xml.etree.ElementTree.parse() against a XMLShema file
Stefan Behnel
stefan_ml at behnel.de
Wed Dec 22 22:32:13 CET 2010
Karim, 22.12.2010 22:09:
> Using lxml (except for the different import) will be fully compliant with
> the ET code.
> Do I have to adapt it?
There are certain differences.
http://codespeak.net/lxml/compatibility.html
This page hasn't been changed for ages, but it should still be mostly accurate.
> I saw your fantastic benchmarks! Why the hell lxml is not integrated into
> the stdlib.
> I thought they put in it things which works at best for python interest ?
I proposed it but it was rejected with the argument that it's a huge
dependency and brings in two large C libraries that will be hard to control
for future long-term maintenance. I think that's a reasonable objection.
Stefan
More information about the Tutor
mailing list