Re: classes and dictionaries

2010-09-15 Thread MRAB
On 16/09/2010 01:13, Jason Swails wrote: Hello everyone, I'm encountering an issue in one of my Python classes that makes extensive use of dictionaries. I was under the impression that each time an object was instantiated, all of its variables were created in a new section of memory, so that if

Re: classes and dictionaries

2010-09-15 Thread James Mills
On Thu, Sep 16, 2010 at 10:13 AM, Jason Swails wrote: > Hello everyone, > > I'm encountering an issue in one of my Python classes that makes extensive > use of dictionaries.  I was under the impression that each time an object > was instantiated, all of its variables were created in a new section

classes and dictionaries

2010-09-15 Thread Jason Swails
Hello everyone, I'm encountering an issue in one of my Python classes that makes extensive use of dictionaries. I was under the impression that each time an object was instantiated, all of its variables were created in a new section of memory, so that if you change the value of the variable in on