<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>
<div style="font-size:11pt; font-family:Calibri,sans-serif">What about __getlocalattribute__ or __getattributenorecurse__? Long, but this isn't going to be used often.<br>
<br>
Putting "type" or "class" in the name would be misleading. It's an instance method (that is most useful when implemented on a metaclass).<br>
<br>
(Apologies for the top post.)<br>
<br>
Sent from my Windows Phone</div>
</div>
<div dir="ltr">
<hr>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">From:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif"><a href="mailto:steve@pearwood.info">Steven D'Aprano</a></span><br>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">Sent:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif">ý9/ý12/ý2013 16:09</span><br>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">To:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif"><a href="mailto:python-dev@python.org">python-dev@python.org</a></span><br>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">Subject:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif">Re: [Python-Dev] PEP 447: add type.__locallookup__</span><br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Thu, Sep 12, 2013 at 04:42:39PM +0200, Ronald Oussoren wrote:<br>
<br>
> I don't particularly like __locallookup__ either, but haven't found a <br>
> better name yet. "__lookup_in_class__" was the best alternative I <br>
> could come up with, and that feels different than other special <br>
> methods. The name in the PEP is more or less derived from <br>
> _PyType_Lookup, with "local" meaning "only in this class, don't <br>
> recurse in the rest of the MRO".<br>
<br>
How about __typelookup__ ? Surely that's the obvious name to derive from <br>
_PyType_Lookup :-)<br>
<br>
<br>
-- <br>
Steven<br>
_______________________________________________<br>
Python-Dev mailing list<br>
Python-Dev@python.org<br>
<a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com">
https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com</a><br>
</div>
</span></font>
</body>
</html>