Issue 24200: Redundant id in informative reprs (original) (raw)

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.