[issue24200] Redundant id in informative reprs
Serhiy Storchaka
report at bugs.python.org
Fri May 15 08:24:48 CEST 2015
New submission from Serhiy Storchaka:
>>> import inspect
>>> def foo(a, *, b=10): pass
...
>>> inspect.signature(foo)
<Signature at 0xb6e2768c "(a, *, b=10)">
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 <report at bugs.python.org>
<http://bugs.python.org/issue24200>
_______________________________________
More information about the Python-bugs-list
mailing list