Created
September 1, 2015 01:03
-
-
Save auxiliary-character/9a7d72caee236e0026d3 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
#!/usr/bin/env python3 | |
def weird_decorator(func): | |
return "Hello " + func() | |
@weird_decorator | |
def example_function(): | |
return "World." | |
#example_function is redefined as the string "Hello World." | |
print(example_function) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment