Message 89276 - Python tracker (original) (raw)
This doesn't give the expected answer for the test above
Which is obviously due to not comparing apples with apples, as I should be using a byte-string in the py3k example.
import xml.etree.ElementTree as ET e = ET.XML(b"t\xe3t") ET.tostring(e, 'ascii')
Fails without the patch, behaves as expected with the patch.