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