1.1 --- a/docs/syspython.txt Sun Jan 13 01:19:41 2013 +0100
1.2 +++ b/docs/syspython.txt Sun Jan 13 01:20:26 2013 +0100
1.3 @@ -61,8 +61,8 @@
1.4 processed separately, but this would then rule out logic controlling the
1.5 use of modules.
1.6
1.7 -Assignments and name usage involves locals and globals but usage is
1.8 -declared explicitly:
1.9 +Assignments and name usage involve locals and globals but usage is declared
1.10 +explicitly:
1.11
1.12 __localnames__(...)
1.13
1.14 @@ -71,8 +71,14 @@
1.15
1.16 __globalnames__(...)
1.17
1.18 -Although at the module level, locals are effectively equivalent to module
1.19 -globals, each module's __main__ function will declare them as globals.
1.20 +At the module level, locals are effectively equivalent to module globals but
1.21 +are declared as follows:
1.22 +
1.23 + __moduleattrs__(...)
1.24 +
1.25 +Each module's __main__ function will declare any referenced module globals as
1.26 +globals. Note that the __main__ function is not a genuine attribute of any
1.27 +module but an internal construct used to initialise modules appropriately.
1.28
1.29 Such declarations must appear first in a program unit (module, function).
1.30 For example: