I am trying to understand, how exactly variable binding in python works. Let\'s look at this:
def foo(x): def bar(): print y return bar y =
It is mater of scope, second example uses local scope variable x, that is preceded above globally declared