Message217679
Ah, sorry, actually, it does not work in Py3.2:
>>> import xml.etree.cElementTree as cET
>>> root = cET.Element('root', attrib={'Name':'Root'})
>>> child = cET.SubElement(root, 'child', attrib={'Name':'Child'})
>>> cET.tostring(root)
b'<root attrib="{\'Name\': \'Root\'}"><child attrib="{\'Name\': \'Child\'}" /></root>'
That's even worse than in 2.7 as it doesn't raise an exception. |
|
Date |
User |
Action |
Args |
2014-05-01 06:32:28 | scoder | set | recipients:
+ scoder, eli.bendersky, santoso.wijaya |
2014-05-01 06:32:28 | scoder | set | messageid: <1398925948.96.0.696514086629.issue21403@psf.upfronthosting.co.za> |
2014-05-01 06:32:28 | scoder | link | issue21403 messages |
2014-05-01 06:32:28 | scoder | create | |
|