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/2011-June/112084.html below:

[Python-Dev] Issue10403 - using 'attributes' instead of members in documentation

[Python-Dev] Issue10403 - using 'attributes' instead of members in documentation [Python-Dev] Issue10403 - using 'attributes' instead of members in documentationNick Coghlan ncoghlan at gmail.com
Tue Jun 28 15:37:34 CEST 2011
On Tue, Jun 28, 2011 at 11:27 PM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> Technically also via __getattribute__ when overridden.

Since object.__getattribute__ is the hook that implements the entire
attribute lookup protocol, *all* attributes are technically retrieved
via __getattribute__ (which is why overriding it correctly can be such
a PITA). That's also the hook type() overrides to make class attribute
lookup differ from ordinary instance lookup.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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