![](https://secure.gravatar.com/avatar/cc8334869c9d2a9e603017f2da805eb3.jpg?s=120&d=mm&r=g)
10 Mar
2008
10 Mar
'08
3:19 a.m.
I've noticed in html5lib that they do (in html5lib.treebuilder.etree_lxml): try: import lxml.html as etree except ImportError: from lxml import etree with the expectation that the two work the same way. They don't work the same, specifically there's no etree.Comment. Is it a reasonable expectation that they act the same? (I think they haven't tested the code much with lxml 2, so basically they haven't exercised the first case... though looking at the code some I'm not sure it works with the second case either) Ian