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/128615.html below:

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

[Python-Dev] PEP 447: add type.__locallookup__ [Python-Dev] PEP 447: add type.__locallookup__Steven D'Aprano steve at pearwood.info
Fri Sep 13 01:08:21 CEST 2013
On Thu, Sep 12, 2013 at 04:42:39PM +0200, Ronald Oussoren wrote:

> I don't particularly like __locallookup__ either, but haven't found a 
> better name yet.  "__lookup_in_class__" was the best alternative I 
> could come up with, and that feels different than other special 
> methods.  The name in the PEP is more or less derived from 
> _PyType_Lookup, with "local" meaning "only in this class, don't 
> recurse in the rest of the MRO".

How about __typelookup__ ? Surely that's the obvious name to derive from 
_PyType_Lookup :-)


-- 
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