Variable Scope and Binding
suggest changeSyntax
global a, b, cnonlocal a, bx = something# binds x(x, y) = something# binds x and yx += something# binds x. Similarly for all other “op=”del x# binds xfor x in something:# binds xwith something as x:# binds xexcept Exception as ex:# binds ex inside block
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents