def test_class(): global c print c.m c = d_TEMPLATE(2,3,4) print c.m
def test_class(): global c print c.m c = d_TEMPLATE(2, 3, 4) print c.m
from d_class import d_TEMPLATE a = 4 b = int() c = d_TEMPLATE() def test_class(): global c print c.m c = d_TEMPLATE(2,3,4) print c.m def test_a(): global a, b #global a, b print a, b a += 4 b = 4 def test_session(): a = 4 b = 4 print a, b #test_class() #print c.m #test_a() print a, b test_session() print a, b
from d_class import d_TEMPLATE a = 4 b = int() c = d_TEMPLATE() def test_class(): global c print c.m c = d_TEMPLATE(2, 3, 4) print c.m def test_a(): global a, b #global a, b print a, b a += 4 b = 4 def test_session(): a = 4 b = 4 print a, b #test_class() #print c.m #test_a()