Get reference to "owner"

Robert Oschler Oschler at earthlink.net
Tue Mar 5 01:41:06 EST 2002


I've never seen this feature in any programming language I've worked in but
it can't hurt to ask.  Can an aggregated class object get a reference to the
class object that aggregates it?  So if ClassAggregator contained an
instance of ClassAggregatee is there a Python syntax/construct that a
function in ClassAggregatee could use to get a reference to the instance of
ClassAggregator that contained it?

Thanks.






More information about the Python-list mailing list