This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients eli.bendersky, santoso.wijaya, scoder
Date 2014-05-01.06:32:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398925948.96.0.696514086629.issue21403@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-05-01 06:32:28scodersetrecipients: + scoder, eli.bendersky, santoso.wijaya
2014-05-01 06:32:28scodersetmessageid: <1398925948.96.0.696514086629.issue21403@psf.upfronthosting.co.za>
2014-05-01 06:32:28scoderlinkissue21403 messages
2014-05-01 06:32:28scodercreate