Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30850

Re: instance.attribute lookup

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1349479602; bh=TUXL0HEyL5+S1miBwoED5Z1WJLJZPR9Xx2B1RkwpFtQ=; h=To:From:Subject:Date:Message-ID:References:Mime-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=zTLcTKyCS+gJpudgGiw1J45zd8FiLepEqN32V32YasA+sA8mGkbtMnRPmgzDtyCgE HY2SArjYGB9k10IiNwlDH2uWhc3zn1EQHtGTKPZMbu/uvQo9R2VN8SJeIVEZoXMApD nHbOV5avK1OYR9/6pkJD4d5Oo19BxpmUg6k85TcE=
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'classes.': 0.07; 'exist.': 0.09; 'lookup': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'from:name:christian heimes': 0.16; 'ignores': 0.16; 'metaclasses': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'from:addr:python.org': 0.17; 'instance': 0.17; 'subject:skip:i 10': 0.22; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'existence': 0.29; "i'm": 0.29; 'anybody': 0.32; 'to:addr:python-list': 0.33; 'wrong': 0.34; 'received:org': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'step': 0.39; 'header:Received:5': 0.40; 'different': 0.63; 'strategy': 0.64; 'confusing': 0.84; 'ethan': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Christian Heimes <christian@python.org>
Subject Re: instance.attribute lookup
Date Sat, 06 Oct 2012 01:26:32 +0200
References <506F1B69.8030800@stoneleaf.us>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host f048133073.adsl.alicedsl.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0
In-Reply-To <506F1B69.8030800@stoneleaf.us>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1880.1349479604.27098.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349479604 news.xs4all.nl 6860 [2001:888:2000:d::a6]:53463
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30850

Show key headers only | View raw


Am 05.10.2012 19:39, schrieb Ethan Furman:
> I'm thinking step 1 is flat-out wrong and doesn't exist.  Does anybody
> know otherwise?

The answer is confusing and also wrong. For instance it ignores the
existence of __slots__, metaclasses and the different lookup strategy of
__special__ methods in old style and new style classes.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: instance.attribute lookup Christian Heimes <christian@python.org> - 2012-10-06 01:26 +0200

csiph-web