Referencing a container object's attributes

Alex Martelli aleaxit at
Sun Mar 25 18:56:19 CEST 2001

"Tim Churches" <tchur at> wrote in message
news:mailman.985486832.26248.python-list at
> Is there any way for a method of a class instance which is embedded in a
> container class instance to look up attributes of that container class
> instance (i.e. the one which contains it)? At the moment I am putting

Zope uses metaclasses for something like that == "inheritance" (sort
of) from a container.  Not sure how applicable that is to your needs...


More information about the Python-list mailing list