Referencing a container object's attributes

Alex Martelli aleaxit at yahoo.com
Sun Mar 25 11:56:19 EST 2001


"Tim Churches" <tchur at optushome.com.au> wrote in message
news:mailman.985486832.26248.python-list at python.org...
> 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...


Alex






More information about the Python-list mailing list