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 <1244383696.52.0.0575632707865.issue6230@psf.upfronthosting.co.za>
In-reply-to
Content
ElementTree and cElementTree give slightly different results for
repr(Element):

>>> 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.
History
Date User Action Args
2009-06-07 14:08:16Neil Mullersetrecipients: + Neil Muller, effbot
2009-06-07 14:08:16Neil Mullersetmessageid: <1244383696.52.0.0575632707865.issue6230@psf.upfronthosting.co.za>
2009-06-07 14:08:15Neil Mullerlinkissue6230 messages
2009-06-07 14:08:14Neil Mullercreate