Skip to content

Instantly share code, notes, and snippets.

@alfredodeza
Created August 2, 2012 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredodeza/3236707 to your computer and use it in GitHub Desktop.
Save alfredodeza/3236707 to your computer and use it in GitHub Desktop.
Unbound
FOO = None
def set_or_return():
if FOO:
return FOO # local variable 'FOO' (defined in enclosing scope in line 1) referenced before assignment
try:
FOO = True
except:
FOO = False
return FOO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment