Message119527
Given the code:
def f():
def g():
nonlocal a
a = 3
Running it produces:
alex@alex-laptop:/tmp$ python3.1 test.py
SyntaxError: no binding for nonlocal 'a' found
Compared to a different SyntaxError:
alex@alex-laptop:/tmp$ python3.1 test.py
File "test.py", line 1
print a
^
SyntaxError: invalid syntax |
|
Date |
User |
Action |
Args |
2010-10-24 19:22:07 | alex | set | recipients:
+ alex |
2010-10-24 19:22:07 | alex | set | messageid: <1287948127.54.0.779100996642.issue10189@psf.upfronthosting.co.za> |
2010-10-24 19:22:05 | alex | link | issue10189 messages |
2010-10-24 19:22:05 | alex | create | |
|