How to change the value of some_module.Var.b to the value of Numbers.a
Main code:
import some_module
class Number:
a = 2
Number.a = some_module.Var.b
print("some_module.Var.b =", some_module.Var.b)
print("Number.a =", Number.a)
some_module:
class Var:
b = 0
Wanted output:
>>> some_module.Var.b = 2
>>> Number.Var.a = 2
Actual output:
>>> some_module.Var.b = 0
>>> Number.Var.a = 0