@@ -164,22 +164,22 @@ Builtins and restricted execution
164
164
165
165
.. index :: pair: restricted; execution
166
166
167
- The builtins namespace associated with the execution of a code block is actually
168
- found by looking up the name ``__builtins__ `` in its global namespace; this
169
- should be a dictionary or a module (in the latter case the module's dictionary
170
- is used). By default, when in the :mod: `__main__ ` module, ``__builtins__ `` is
171
- the built-in module :mod: `builtins `; when in any other module,
172
- ``__builtins__ `` is an alias for the dictionary of the :mod: `builtins ` module
173
- itself. ``__builtins__ `` can be set to a user-created dictionary to create a
174
- weak form of restricted execution.
175
-
176
167
.. impl-detail ::
177
168
178
169
Users should not touch ``__builtins__ ``; it is strictly an implementation
179
170
detail. Users wanting to override values in the builtins namespace should
180
171
:keyword: `import ` the :mod: `builtins ` module and modify its
181
172
attributes appropriately.
182
173
174
+ The builtins namespace associated with the execution of a code block
175
+ is actually found by looking up the name ``__builtins__ `` in its
176
+ global namespace; this should be a dictionary or a module (in the
177
+ latter case the module's dictionary is used). By default, when in the
178
+ :mod: `__main__ ` module, ``__builtins__ `` is the built-in module
179
+ :mod: `builtins `; when in any other module, ``__builtins__ `` is an
180
+ alias for the dictionary of the :mod: `builtins ` module itself.
181
+
182
+
183
183
.. _dynamic-features :
184
184
185
185
Interaction with dynamic features
0 commit comments