robpats <robotp...@gmail.com> added the comment:

Thanks for the pointer. I didn't notice this paragraph.
xml.etree.ElementTree.Element.find currently returns None if XPath expression 
is invalid or unsupported. I think it should also return None if position 
predicates are not preceded by a tag name. It would be even better to emit 
warnings or raise exceptions to indicate any errors.

----------

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

Reply via email to