Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/reference/executionmodel.rst

    r2 r391  
    120120.. index:: pair: restricted; execution
    121121
    122 The built-in namespace associated with the execution of a code block is actually
     122The builtins namespace associated with the execution of a code block is actually
    123123found by looking up the name ``__builtins__`` in its global namespace; this
    124124should be a dictionary or a module (in the latter case the module's dictionary
     
    132132
    133133   Users should not touch ``__builtins__``; it is strictly an implementation
    134    detail.  Users wanting to override values in the built-in namespace should
     134   detail.  Users wanting to override values in the builtins namespace should
    135135   :keyword:`import` the :mod:`__builtin__` (no 's') module and modify its
    136136   attributes appropriately.
     
    141141imported.  The main module for a script is always called :mod:`__main__`.
    142142
    143 The global statement has the same scope as a name binding operation in the same
    144 block.  If the nearest enclosing scope for a free variable contains a global
    145 statement, the free variable is treated as a global.
     143The :keyword:`global` statement has the same scope as a name binding operation
     144in the same block.  If the nearest enclosing scope for a free variable contains
     145a global statement, the free variable is treated as a global.
    146146
    147147A class definition is an executable statement that may use and define names.
Note: See TracChangeset for help on using the changeset viewer.