diff -r Doc/reference/executionmodel.rst --- a/Doc/reference/executionmodel.rst Thur Mar 13 13:37:12 2014 -0500 +++ b/Doc/reference/executionmodel.rst Sat Mar 15 13:55:39 2014 +0100 +Naming and binding +------------------------------------------------------------------- -If a name binding operation occurs anywhere within a code block, all -uses of the name within the block are treated as references to the -current block. This can lead to errors when a name is used within a -block before it is bound. This rule is subtle. Python lacks declarations -and allows name binding operations to occur anywhere within a code block. -The local variables of a code block can be determined by scanning the -entire text of the block for name binding operations. +If a name binding operation occurs anywhere within a function code block, +all uses of the name within the block are treated as references to the +current block. This can lead to errors when a name is used within a +block before it is bound. This rule is subtle. Python lacks declarations +and allows name binding operations to occur anywhere within a function code +block.The local variables of a function code block can be determined by +scanning the entire text of the block for name binding operations.