[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone inva...@example.invalid: 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

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added in r87147. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10661 ___

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Eric Smith
Eric Smith e...@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 -

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Granted. Since the rest of the file uses old-style format, I've kept to it, r87148. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10661