Mention that nonlocal is for Python3.0 and up only

This commit is contained in:
Gregor Best 2015-05-12 00:00:54 +02:00
parent 9ed9bc5e11
commit e4ed5cc357

View File

@ -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: