Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1010bf3 commit e9deddbCopy full SHA for e9deddb
1 file changed
Doc/reference/executionmodel.rst
@@ -51,8 +51,8 @@ definition occurs in a function block, the scope extends to any blocks contained
51
within the defining one, unless a contained block introduces a different binding
52
for the name. The scope of names defined in a class block is limited to the
53
class block; it does not extend to the code blocks of methods -- this includes
54
-generator expressions since they are implemented using a function scope. This
55
-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::
56
57
class A:
58
a = 42
0 commit comments