Created
July 26, 2015 15:06
-
-
Save pcote/a615c7497699569af470 to your computer and use it in GitHub Desktop.
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
class count_limiter(object): | |
def __init__(self, count_limit): | |
pass | |
def __call__(self, func): | |
def wrapper(*args, **kwargs): | |
res = func(*args, **kwargs) | |
return res | |
return wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment