Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created April 25, 2015 07:40
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 zeffii/9b8dd07abadea0fe2875 to your computer and use it in GitHub Desktop.
Save zeffii/9b8dd07abadea0fe2875 to your computer and use it in GitHub Desktop.
from contextlib import contextmanager
@contextmanager
def surfsup():
info = lambda: None
info.breaker = ['teleprompt']
info.charly = ['humate', 0, 2, 3]
yield info
with surfsup() as i:
print(i.breaker)
print(i.charly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment