Re: [Python-Dev] PEP 362 minor nits

2012年6月20日 01:32:08 -0700

On Tue, Jun 19, 2012 at 08:11:26PM -0400, Yury Selivanov wrote:
> So using the signature will be OK for 'Foo.bar' and 'Foo().bar', but
> not for 'Foo.__dict__['bar']' - which I think is fine (since
> staticmethod & classmethod instances are not callable)
There has been some talk on Python-ideas about making staticmethod and 
classmethod instances callable.
Speaking of non-instance method descriptors, please excuse this silly 
question, I haven't quite understood the implementation well enough to 
answer this question myself. Is there anything needed to make 
signature() work correctly with custom method-like descriptors such as 
this?
http://code.activestate.com/recipes/577030-dualmethod-descriptor
-- 
Steven
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to