Mention that nonlocal
is for Python3.0 and up only
This commit is contained in:
parent
9ed9bc5e11
commit
e4ed5cc357
@ -1011,6 +1011,8 @@ conditional expression. Some examples:
|
|||||||
nonlocal
|
nonlocal
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
**PYTHON 3.0 AND UP ONLY!**
|
||||||
|
|
||||||
``nonlocal`` can be used to mark a symbol as not local to the current scope.
|
``nonlocal`` can be used to mark a symbol as not local to the current scope.
|
||||||
The parameters are the names of symbols to mark as nonlocal. This is necessary
|
The parameters are the names of symbols to mark as nonlocal. This is necessary
|
||||||
to modify variables through nested ``let`` scopes:
|
to modify variables through nested ``let`` scopes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user