Closed lijunsong closed 11 years ago
def f(): global x x += 1 return x x = 1 print({10:f(), 11:f()})
report {10: 2, 11: 2} but should be {10: 2, 11: 3}
I am changing the MetaDict to CVal->Address. I will try to fix it.
and print({f():f(), f():f()}) should be {3: 2, 5: 4}
report {10: 2, 11: 2} but should be {10: 2, 11: 3}
I am changing the MetaDict to CVal->Address. I will try to fix it.