[Python-checkins] r69132 - python/branches/py3k/Doc/reference/executionmodel.rst
benjamin.peterson
python-checkins at python.org
Sat Jan 31 04:57:19 CET 2009
Author: benjamin.peterson
Date: Sat Jan 31 04:57:19 2009
New Revision: 69132
Log:
comprehrensions now have proper scoping #5106
Modified:
python/branches/py3k/Doc/reference/executionmodel.rst
Modified: python/branches/py3k/Doc/reference/executionmodel.rst
==============================================================================
--- python/branches/py3k/Doc/reference/executionmodel.rst (original)
+++ python/branches/py3k/Doc/reference/executionmodel.rst Sat Jan 31 04:57:19 2009
@@ -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
More information about the Python-checkins
mailing list