[issue9050] UnboundLocalError in nested function

2010-06-21 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9050] UnboundLocalError in nested function

2010-06-21 Thread Andreas Hofmeister
Andreas Hofmeister added the comment: Duplicate of 9049. Sorry for the inconvenience. -- status: open -> closed ___ Python tracker ___ __

[issue9050] UnboundLocalError in nested function

2010-06-21 Thread Andreas Hofmeister
New submission from Andreas Hofmeister : Description: An unexpected UnboundLocalError is produced when assigning a value to a variable inside a nested function. The first assignment to the variable is in the enclosing function. Example: def x(): a = False def y(): print a