New submission from Jérôme Laurens: text is not catcher in case 3 below
INPUT import xml.etree.ElementTree as ET root1 = ET.fromstring('<a>TEXT</a>') print(root1.text) root2 = ET.fromstring('<a>TEXT<b/></a>') print(root2.text) root3 = ET.fromstring('<a><b/>TEXT</a>') print(root3.text) CURRENT OUTPUT TEXT TEXT None <---------- ERROR HERE EXPECTED OUTPUT TEXT TEXT TEXT ---------- messages: 242207 nosy: jlaurens priority: normal severity: normal status: open title: xml.etree.ElementTree.Element does not catch text type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24072> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com