Mercurial > cpython-lru_cache-weakref
diff Doc/reference/executionmodel.rst @ 51201:02a90dc0c29a
comprehrensions now have proper scoping #5106
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 31 Jan 2009 03:57:19 +0000 |
| parents | 89f5cfec0573 |
| children | 0be1c1f127e0 |
line wrap: on
line diff
--- a/Doc/reference/executionmodel.rst Fri Jan 30 04:00:29 2009 +0000 +++ b/Doc/reference/executionmodel.rst Sat Jan 31 03:57:19 2009 +0000 @@ -51,8 +51,8 @@ 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
