Re: Object instance "reporting" to a container class instance

2007-03-12 Thread Greenberg
Daniel Lipovetsky wrote: > I would like for an object to "report" to a container object when a > new instance is created or deleted. I could have a container object > that is called when a new instance is created, as below. I've run into a similar problem before, in my case it was easiest to allo

Re: Object instance "reporting" to a container class instance

2007-03-11 Thread Alex Martelli
Daniel Lipovetsky <[EMAIL PROTECTED]> wrote: > I would like for an object to "report" to a container object when a > new instance is created or deleted. I could have a container object > that is called when a new instance is created, as below. > > class AnyObject: > pass > > class Container: