[issue24200] Redundant id in informative reprs

2015-05-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue24200] Redundant id in informative reprs

2015-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f23d0a4278aa by Yury Selivanov in branch 'default': Issue 24200: Fix broken unittest. https://hg.python.org/cpython/rev/f23d0a4278aa -- ___ Python tracker

[issue24200] Redundant id in informative reprs

2015-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d72d31f4b69a by Yury Selivanov in branch 'default': inspect: Remove "0x..." IDs from Signature objects' __repr__ https://hg.python.org/cpython/rev/d72d31f4b69a -- nosy: +python-dev ___ Python tracker

[issue24200] Redundant id in informative reprs

2015-05-15 Thread Yury Selivanov
Yury Selivanov added the comment: Agree. Let's remove them. I'll update the code. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue24200] Redundant id in informative reprs

2015-05-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: >>> import inspect >>> def foo(a, *, b=10): pass ... >>> inspect.signature(foo) I think the id is not needed in informative repr if you implemented __eq__. Identity doesn't matter if different instances can be equal. The id in the repr only adds a noise.