[issue10661] ElementTree QName has a very uninformative repr()
Eric Smith
report at bugs.python.org
Thu Dec 9 19:22:42 CET 2010
Eric Smith <eric at trueblade.com> added the comment:
This should be either:
'<QName %r>' % (self.text,)
or:
'<QName {!r}>'.format(self.text)
If self.text is a tuple (which granted is its own error), then the version checked in will raise an exception.
----------
nosy: +eric.smith
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10661>
_______________________________________
More information about the Python-bugs-list
mailing list