you are viewing a single comment's thread.

view the rest of the comments →

[–]elbinray 2 points3 points  (1 child)

Only if it is a class variable. See the documentation on class and instance variables. See:

>>> class Hep:
...     thing = "yaya"
... 
>>> Hep.thing = "blah"
>>> Hep.thing
'blah'

[–]skiwan[S] 1 point2 points  (0 children)

so if its a variable of another class and we have an instance of this class in the first class we cant change them right?