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 types | |
class decorator(object): | |
""" | |
When using a decorator, the function that is being decorated | |
loses its __name__, docstring, and signature. | |
For example, consider the generic decorator ``my_decorator``: | |
def my_decorator(fn): |