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
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
___
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 -
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