[New-bugs-announce] [issue37399] XML text behaviour change if there are comments
Dima Tisnek
report at bugs.python.org
Tue Jun 25 04:48:22 EDT 2019
New submission from Dima Tisnek <dimaqq at gmail.com>:
Example:
# mre.py
from xml.etree import ElementTree
XML = "<a>foo<!-- comment -->bar</a>"
a = ElementTree.fromstring(XML)
print(list(a.itertext()))
# Testing 3.7.3 vs. 3.8.0b1; macOS
… ~> python3.7 mre.py
['foobar']
… ~> python3.8 mre.py
['bar']
----------
components: Library (Lib)
messages: 346493
nosy: Dima.Tisnek
priority: normal
severity: normal
status: open
title: XML text behaviour change if there are comments
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37399>
_______________________________________
More information about the New-bugs-announce
mailing list