New submission from Gutzwiller: $ python3 Python 3.3.0 (default, Jan 25 2013, 09:38:18) [GCC 4.4.5] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET >>> xml = ET.fromstring("<root><h1>1</h1><p><h1>2</h1></p></root>") >>> result = xml.find(".//h1[2]") >>> print(result) None
======================================================================== Expected result : "<Element 'h1' at ...>" (<h1>2</h1>) ---------- components: XML messages: 181473 nosy: Antoine2008 priority: normal severity: normal status: open title: XPath error in xml.etree.ElementTree type: behavior versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17138> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com