On the following source code:
#!/usr/bin/python3
def foo():
i = 1
def bar():
nonlocal i
return i + 1
return bar
print(foo()())
pychecker gives the following error:
Processing module pychecker (pychecker.py)...
SyntaxError: invalid syntax (pychecker.py, line 6)
nonlocal i
^
pychecker should support the nonlocal statement, which is new in Python 3