[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list