class CLASS1: def testingFunc(): CLASS1.testingFunc.thisValue = 123 class CLASS2: def createValue(): CLASS1.testingFunc() print(CLASS1.testingFunc.thisValue) CLASS2.createValue()