Mercurial > cpython-lru_cache-weakref
diff Doc/reference/executionmodel.rst @ 67403:a3288a4e2ead
Fix various issues (mostly Python 2 relics) found by Jacques Ducasse.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 06 Jan 2011 09:23:56 +0000 |
| parents | 9afed70d3aca |
| children | 10256bd68787 |
line wrap: on
line diff
--- a/Doc/reference/executionmodel.rst Thu Jan 06 09:23:19 2011 +0000 +++ b/Doc/reference/executionmodel.rst Thu Jan 06 09:23:56 2011 +0000 @@ -141,9 +141,9 @@ The namespace for a module is automatically created the first time a module is imported. The main module for a script is always called :mod:`__main__`. -The global statement has the same scope as a name binding operation in the same -block. If the nearest enclosing scope for a free variable contains a global -statement, the free variable is treated as a global. +The :keyword:`global` statement has the same scope as a name binding operation +in the same block. If the nearest enclosing scope for a free variable contains +a global statement, the free variable is treated as a global. A class definition is an executable statement that may use and define names. These references follow the normal rules for name resolution. The namespace of
