[issue6833] incorrect: failed local variable referenced before assignment

2009-09-03 Thread Mark Dickinson
Mark Dickinson added the comment: This is not a bug. The behaviour you're seeing is described here: http://docs.python.org/reference/executionmodel.html#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 re

[issue6833] incorrect: failed local variable referenced before assignment

2009-09-03 Thread Paul van der Linden
New submission from Paul van der Linden : The attached python file will give the following output, which is incorrect behavior as far as I know: " this will fail failed local variable 'in_std' referenced before assignment this won't fail Not failed this won't fail either Not failed " This is t