[issue7930] pydoc.stripid doesn't strip ID in py25, py26, py31

2010-02-16 Thread Ezio Melotti
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

[issue7930] pydoc.stripid doesn't strip ID in py25, py26, py31

2010-02-15 Thread Ezio Melotti
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

[issue7930] pydoc.stripid doesn't strip ID in py25, py26, py31

2010-02-15 Thread Ezio Melotti
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

[issue7930] pydoc.stripid doesn't strip ID in py25, py26, py31

2010-02-14 Thread Michael Newman
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