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 exarkun
Recipients exarkun
Date 2010-12-09.16:54:08
SpamBayes Score 2.165586e-06
Marked as misclassified No
Message-id <1291913650.88.0.227621889863.issue10661@psf.upfronthosting.co.za>
In-reply-to
Content
This is somewhat unfortunate behavior:

>>> from xml.etree.ElementTree import QName
>>> QName('foo')
<xml.etree.ElementTree.QName instance at 0x10049c830>
>>> 

It becomes even more apparent when encountered in a situation like this:

>>> print {QName('foo'): 'bar', QName('baz'): 'quux'}
{<xml.etree.ElementTree.QName instance at 0x10049cb90>: 'bar', <xml.etree.ElementTree.QName instance at 0x10049c248>: 'quux'}
>>> 

I would like to see QName.__repr__ return something like '<QName %r>' % (text,)
History
Date User Action Args
2010-12-09 16:54:10exarkunsetrecipients: + exarkun
2010-12-09 16:54:10exarkunsetmessageid: <1291913650.88.0.227621889863.issue10661@psf.upfronthosting.co.za>
2010-12-09 16:54:08exarkunlinkissue10661 messages
2010-12-09 16:54:08exarkuncreate