diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-01-31 03:57:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-01-31 03:57:19 (GMT) |
commit | e9deddbf8c4f7bde3217d5d12cb933d6ea590840 (patch) | |
tree | cc607e9e4a318560a4a19562a3a79c5180a057bf | |
parent | 1010bf3e2690ea665ed0fae5b1f0a6f959040441 (diff) | |
download | cpython-e9deddbf8c4f7bde3217d5d12cb933d6ea590840.zip cpython-e9deddbf8c4f7bde3217d5d12cb933d6ea590840.tar.gz cpython-e9deddbf8c4f7bde3217d5d12cb933d6ea590840.tar.bz2 |
comprehrensions now have proper scoping #5106
-rw-r--r-- | Doc/reference/executionmodel.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/executionmodel.rst b/Doc/reference/executionmodel.rst index 6ec88f5..cc9ee3d 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 |