Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created September 25, 2012 00:33
Show Gist options
  • Save ashgti/3779301 to your computer and use it in GitHub Desktop.
Save ashgti/3779301 to your computer and use it in GitHub Desktop.
a = foo()
a.bar = 123 # default
with a:
a.bar = 13213
a.do_stuff()
with a:
a.bar = 5432
a.do_stuff()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment