Created
August 25, 2011 02:56
-
-
Save qoelet/1169882 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def add_curly_wurly(func): | |
def curlized(): | |
print "~" | |
func() | |
print "~" | |
return curlized | |
@add_curly_wurly | |
def hello_world(): | |
print "Hello world!" | |
hello_world() | |
# output: | |
# ~ | |
# Hello world! | |
# ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment