On 13 Sep, 2013, at 12:42, Nick Coghlan <ncogh...@gmail.com> wrote:

> Perhaps "__getdescriptor__" would work as the method name? Yes, it can 
> technically return a non-descriptor, but the *primary* purpose is to 
> customise the retrieval of objects that will be checked to see if they're 
> descriptors. It *won't* be invoked when looking for ordinary attributes in an 
> instance dict, but *will* be invoked when looking on the class object.

__getdescriptor__ would work. The name is not 100% accurate, but a lot clearer 
than the other alternatives I've seen.

Ronald

P.S. Sorry about the slow response, its hard to find enough time to seriously 
participate in the discussion.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to