Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import functools
- def takes(*args):
- myargs = args
- def take(func):
- @functools.wraps(func)
- def wrapper(*args):
- for a, b in zip(myargs, args):
- if(not isinstance(b, a)):
- raise TypeError
- return func(*args)
- return wrapper
- return take
- exec(sys.stdin.read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement