From e4ed5cc357fa7380965cfddfceb6277a37cbc7c7 Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Tue, 12 May 2015 00:00:54 +0200 Subject: [PATCH] Mention that `nonlocal` is for Python3.0 and up only --- docs/language/api.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/language/api.rst b/docs/language/api.rst index 9a285d5..8a10a88 100644 --- a/docs/language/api.rst +++ b/docs/language/api.rst @@ -1011,6 +1011,8 @@ conditional expression. Some examples: nonlocal -------- +**PYTHON 3.0 AND UP ONLY!** + ``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 to modify variables through nested ``let`` scopes: