The following code shows
invalid syntax. I assume syntastic is looking at Python2 for syntax-checking. I need it to look at Python3 instead.
def x(): x = 42 def y(): nonlocal x x = 8 return x return y print( x()() )
nonlocal is the method of telling Python3 that you do not want to shadow
x. It's a great and powerful feature that let's me quick and easily obscure code, and one of the many benefits of lacking
dim, and the like on variable declaration.