Author Neil Muller
Recipients Neil Muller, effbot
Date 2009-06-07.14:08:14
SpamBayes Score 6.06097e-09
Marked as misclassified No
Message-id <>
ElementTree and cElementTree give slightly different results for

>>> import xml.etree.ElementTree as ET
>>> import xml.etree.cElementTree as cET
>>> repr(ET.ElementTree('tag'))
'<Element tag at b7cf506c>'
>>> repr(cET.ElementTree('tag')
"<Element 'tag' at 0xb7c266f8>"

The quoting around the tag name is missing from ElementTree.

This inconsistency seems pointless.

Attached patch changes ElementTree to match cElementTree behaviour, and
adds a test.
Date User Action Args
2009-06-07 14:08:16Neil Mullersetrecipients: + Neil Muller, effbot
2009-06-07 14:08:16Neil Mullersetmessageid: <>
2009-06-07 14:08:15Neil Mullerlinkissue6230 messages
2009-06-07 14:08:14Neil Mullercreate