Skip to content

Instantly share code, notes, and snippets.

@esamattis
Created March 26, 2010 00:13
Show Gist options
  • Select an option

  • Save esamattis/344298 to your computer and use it in GitHub Desktop.

Select an option

Save esamattis/344298 to your computer and use it in GitHub Desktop.
def foo(value):
def closure():
value = "Override"
print value
return value
return closure
print foo("something")()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment