Tuesday, March 10, 2009

Py3K: Solving the “outer scope” problem « Unspecified Behaviour

Py3K: Solving the “outer scope” problem « Unspecified Behaviour
x = 4
def f():
global x
if True:
return x
else:
x = 2

No comments:

Post a Comment