Re: Local variables in classes and class instantiation

2007-12-27 Thread Gabriel Genellina
En Sun, 23 Dec 2007 08:05:18 -0300, Peter Otten <[EMAIL PROTECTED]> escribió: >> Still, when I execute all three methods, I get two instances that are >> equal and the third is different. >> Is there some circomstance that makes two object creations result in the >> same object? >> >> ==

Re: Local variables in classes and class instantiation

2007-12-23 Thread Peter Otten
A.J. Bonnema wrote: > I have a small question about how classes get instantiated within other > classes. I have added the source of a test program to the bottom of this > mail, that contains 3 methods within a testclass that each instantiate > the same class and bind it to a local variable. My

Re: Local variables in classes and class instantiation

2007-12-23 Thread Matt Nordhoff
A.J. Bonnema wrote: > Hi all, > > I just started using Python. I used to do some Java programming, so I am > not completely blank. > > I have a small question about how classes get instantiated within other > classes. I have added the source of a test program to the bottom of this > mail, that