summaryrefslogtreecommitdiff
path: root/Doc/reference/executionmodel.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-31 03:57:19 +0000
committerBenjamin Peterson <benjamin@python.org>2009-01-31 03:57:19 +0000
commit87595dba32f7bb6cb6a08e327e988ee6cf382370 (patch)
tree219c7fa19dff8c5b5b027a8b5eb24866437ac2b7 /Doc/reference/executionmodel.rst
parent4dd59831e213b88f22fb7543bc3110ec00a434a7 (diff)
downloadcpython-87595dba32f7bb6cb6a08e327e988ee6cf382370.tar.gz
comprehrensions now have proper scoping #5106
Diffstat (limited to 'Doc/reference/executionmodel.rst')
-rw-r--r--Doc/reference/executionmodel.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/executionmodel.rst b/Doc/reference/executionmodel.rst
index 6ec88f5340..cc9ee3dd8c 100644
--- a/Doc/reference/executionmodel.rst
+++ b/Doc/reference/executionmodel.rst
@@ -51,8 +51,8 @@ definition occurs in a function block, the scope extends to any blocks contained
within the defining one, unless a contained block introduces a different binding
for the name. The scope of names defined in a class block is limited to the
class block; it does not extend to the code blocks of methods -- this includes
-generator expressions since they are implemented using a function scope. This
-means that the following will fail::
+comprehensions and generator expressions since they are implemented using a
+function scope. This means that the following will fail::
class A:
a = 42