A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/120462.html below:

[Python-Dev] PEP 362 minor nits

[Python-Dev] PEP 362 minor nits [Python-Dev] PEP 362 minor nitsSteven D'Aprano steve at pearwood.info
Wed Jun 20 10:30:07 CEST 2012
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4