class Test:
    x = None

@classmethod
def set_x_class(cls, value):
    Test.x = value

def set_x_self(self):
    self.__class__.set_x_class(10)
if __name__ == '__main__':
    obj = Test()
print(Test.x)
obj.set_x_self()
print(Test.x)
obj.__class__.set_x_class(15)
print(Test.x)
How can I access a classmethod from inside a class in Python