File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- """Lexical scoping support .
2+ """Lexical scope analysis tools .
33
44This is used to support interaction of the ``let[]`` and ``do[]`` macros
55(which use ``env`` to simulate a lexical environment, with static name lookup
88This module cares only about Python's standard scoping rules, but with a
99small twist: assignments (creation of local variables) and local deletes
1010are considered to take effect **from the next statement onward**, for the
11- **lexically remaining part** of the current scope.
11+ **lexically remaining part** of the current scope. (This is how Python
12+ behaves at run time, anyway; trying to delete a local that hasn't yet
13+ been assigned to raises `UnboundLocalError`.)
1214
1315This is mainly for symmetry with how ``do[]`` handles ``local[...]``, but it also
1416allows the RHS of an assignment to see the old bindings. This may be important
You can’t perform that action at this time.
0 commit comments