Created
February 3, 2012 02:27
-
-
Save pgollakota/1727264 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
from functools import wraps | |
# final version which retains the decorated function name etc. | |
def accept_n_gt_zero_only(f:( | |
@wraps(f) | |
def f_n_gt_zero(n, *args, **kwargs:( | |
# ... same as above ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment