[Zope3-dev] Re: Interface support in Python? (was Re: [Zope3-dev] Proposal: Improving on __implements__)

Guido van Rossum guido@python.org
Thu, 23 Jan 2003 09:34:26 -0500


> 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?  In current Python, it stops at the class.

--Guido van Rossum (home page: http://www.python.org/~guido/)