[Zope3-dev] Re: Interface support in Python? (was Re: [Zope3-dev]
Proposal: Improving on __implements__)
Steve Alexander
steve@cat-box.net
Thu, 23 Jan 2003 17:33:44 +0200
Guido van Rossum wrote:
>>Steve Alexander wrote:
>>
>>> getattr(instance, 'foo')
>>> gets me the foo of the instance
>>> or if there is none, the foo of the class
>>> or if there is none, the foo of the metaclass,
>>> or if there is none, the foo of the meta-metaclass,
>>> or if there is none, a KeyError
>
>
> Is this science fiction?
No. It is a question, posed to see if someone can correct my naive and
unreasearched beliefs.
Thanks go to Jim and Phillip for explaining, in subsequent emails.
> In current Python, it stops at the class.
Thanks Guido.
--
Steve Alexnader