Skip to content

Instantly share code, notes, and snippets.

@auxiliary-character
Created September 1, 2015 01:03
Show Gist options
  • Save auxiliary-character/9a7d72caee236e0026d3 to your computer and use it in GitHub Desktop.
Save auxiliary-character/9a7d72caee236e0026d3 to your computer and use it in GitHub Desktop.
#!/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