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/2013-September/128771.html below:

[Python-Dev] PEP 447: add type.__locallookup__

[Python-Dev] PEP 447: add type.__locallookup__ [Python-Dev] PEP 447: add type.__locallookup__Ronald Oussoren ronaldoussoren at mac.com
Thu Sep 19 10:35:22 CEST 2013
On 13 Sep, 2013, at 12:42, Nick Coghlan <ncoghlan at 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.

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