I\'m quite new in python and during these days I\'m exploring classes. I have a question concerning attributes and variables inside classes: What is the difference between d
The most significant difference between the q
attribute in this classes is that in MyClass1
implementation the variable will be shared across all the instances of this class, while in MyClass2
it's only visible in the scope of this particular object.
Some docs: https://docs.python.org/2/tutorial/classes.html#class-and-instance-variables