[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
components: Library (Lib)
messages: 243247
nosy: serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Redundant id in informative reprs
type: behavior
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com