(May-02-2023, 04:09 AM)billykid999 Wrote: When I write my below code everything works fine:Note that this/original snippet and all the rest have one important difference - in the original snippet
info_dict
is class attribute and being mutable dict it is shared among all instances of the class, i.e. if you update the dict in one instance, it is also reflected in all instances.In all the rest it's an instance attribute.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs