Stefan Behnel <stefan...@behnel.de> added the comment:

BTW, I found that lxml and ET differ in their behaviour when searching for '*'. 
ET takes it as meaning "any tree node", whereas lxml interprets it as "any 
Element". Since ET's parser does not create comments and processing 
instructions by default, this does not make a difference in most cases, but 
when the tree contains comments or PIs, then they will be found by '*' in ET 
but not in lxml.

At least for "{*}*", they now both return only Elements. Changing either 
behaviour for '*' is probably not a good idea at this point.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28238>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to