Ezio Melotti added the comment:
Fixed in r78207 (trunk), r78208 (release26-maint), r78209 (py3k) and r78210
(release31-maint).
After a short discussion on #python-dev I decided to remove the 'if', because
it's not necessary and might creates problems with other implementations.
--
res
Ezio Melotti added the comment:
Here's a patch with a minimal unittest.
--
keywords: +easy, needs review, patch
stage: test needed -> patch review
versions: -Python 2.5
Added file: http://bugs.python.org/file16229/issue7930.patch
___
Python tracker
Ezio Melotti added the comment:
This is the stripid implementation:
_re_stripid = re.compile(r' at 0x[0-9a-f]{6,16}(>+)$', re.IGNORECASE)
def stripid(text):
"""Remove the hexadecimal id from a Python object representation."""
# The behaviour of %p is implementation-dependent in terms of
New submission from Michael Newman :
I found that pydoc.stripid doesn't strip the ID in Python 2.5, 2.6, and 3.1. I
assume the problem is probably present in 2.7 and 3.2/dev.
For a little history, see this older issue back for Python 2.3:
http://bugs.python.org/issue934282
The following exampl