[issue5763] scope resolving error

2009-04-15 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Pyt

[issue5763] scope resolving error

2009-04-15 Thread Mark Dickinson
Mark Dickinson added the comment: This is not a bug, just a common gotcha. The rules are described at: http://docs.python.org/reference/executionmodel.html#naming Here's the relevant excerpt: """If a name binding operation occurs anywhere within a code block, all uses of the name within the

[issue5763] scope resolving error

2009-04-15 Thread vid podpecan
New submission from vid podpecan : Consider the following two functions: def outer(): a = 1 def inner(): print a inner() #end outer() def outer_BUG(): a = 1 def inner(): print a a = 2 inner() #end outer_BUG() The first function outer()