Created
April 25, 2015 07:40
-
-
Save zeffii/9b8dd07abadea0fe2875 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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