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.

作者 Neil Muller
收信人 Neil Muller, effbot
日期 2009-06-07.14:08:14
SpamBayes Score 6.0609704e-09
Marked as misclassified
Message-id <1244383696.52.0.0575632707865.issue6230@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2009-06-07 14:08:16Neil Muller修改recipients: + Neil Muller, effbot
2009-06-07 14:08:16Neil Muller修改messageid: <1244383696.52.0.0575632707865.issue6230@psf.upfronthosting.co.za>
2009-06-07 14:08:15Neil Muller链接issue6230 messages
2009-06-07 14:08:14Neil Muller创建