kevinw/pyflakes-vim — Issue #55: Global variables treated as undefined variables when set globally in a function
Author: pukster
Created: 2012-02-26 23:00:36+00:00
State: open

I get this error

"undefined variable x"

if I set "x" something like so

def setX():
global x
x=123

def getX():
global x
print x

if __name__ == "__main__":
setX()
getX()