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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to