Created
          September 16, 2014 20:01 
        
      - 
      
- 
        Save ryangraham/32116104596b72dbc172 to your computer and use it in GitHub Desktop. 
    decorator example
  
        
  
    
      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 wrapper(name): | |
| def wrap(f): | |
| def wrapped(*args, **kwargs): | |
| print name | |
| return f(*args, **kwargs) | |
| return wrapped | |
| return wrap | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment