Changeset 391 for python/trunk/Doc/reference/executionmodel.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/reference/executionmodel.rst
r2 r391 120 120 .. index:: pair: restricted; execution 121 121 122 The built -innamespace associated with the execution of a code block is actually122 The builtins namespace associated with the execution of a code block is actually 123 123 found by looking up the name ``__builtins__`` in its global namespace; this 124 124 should be a dictionary or a module (in the latter case the module's dictionary … … 132 132 133 133 Users should not touch ``__builtins__``; it is strictly an implementation 134 detail. Users wanting to override values in the built -innamespace should134 detail. Users wanting to override values in the builtins namespace should 135 135 :keyword:`import` the :mod:`__builtin__` (no 's') module and modify its 136 136 attributes appropriately. … … 141 141 imported. The main module for a script is always called :mod:`__main__`. 142 142 143 The global statement has the same scope as a name binding operation in the same144 block. If the nearest enclosing scope for a free variable contains a global 145 statement, the free variable is treated as a global.143 The :keyword:`global` statement has the same scope as a name binding operation 144 in the same block. If the nearest enclosing scope for a free variable contains 145 a global statement, the free variable is treated as a global. 146 146 147 147 A class definition is an executable statement that may use and define names.
Note:
See TracChangeset
for help on using the changeset viewer.