[Python-Dev] Updated PEP 362 (Function Signature Object)

Steven D'Aprano steve at pearwood.info
Thu Jun 7 00:11:13 CEST 2012


Yury Selivanov wrote:

> I like the idea of 'foo(a)' and 'bar(a)' having the identical signatures,
> however, I don't think it's possible.  I.e. we can't make it that the
> 'signature(foo) is signature(bar)'.  We can implement the __eq__ operator
> though.

+1 to __eq__.

I don't think we should care about them being identical. Object identity is 
almost always an implementation detail.



-- 
Steven



More information about the Python-Dev mailing list