You can use a property:
class SomeClass(object):
@property
def x(self):
return x
4
solved Automatic Redefining a global variable in the class
You can use a property:
class SomeClass(object):
@property
def x(self):
return x
4
solved Automatic Redefining a global variable in the class