Created
September 28, 2017 06:40
-
-
Save tmerr/3640540d58fc496c40c20826be4f7305 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
import contextlib | |
contextlib.contextmanager | |
def bun(): | |
print('top bun') | |
yield | |
print('bottom bun') | |
with bun(): | |
print('meat') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment