[Python-Dev] test warnings for "%x"%id(foo) on 2.3 branch
anthony at interlink.com.au
Tue Nov 4 09:01:59 EST 2003
I'm seeing a couple of warnings that I don't remember seeing at
the time of the 2.3.2 release. Given what they are, it's possible
that it's just a random thing (whether the id is < 0 or not).
/home/anthony/src/py/23maint/Lib/xml/dom/minidom.py:797: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up
return "<DOM Element: %s at %#x>" % (self.tagName, id(self))
/home/anthony/src/py/23maint/Lib/test/test_repr.py:91: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up
eq(r(i3), ("<ClassWithFailingRepr instance at %x>"%id(i3)))
Anyone want to suggest an appropriate fix, or fix them? Otherwise I'll
put it on the to-do list.
More information about the Python-Dev