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
class TypeCheck(object): | |
def __init__(self,*args): | |
self.flags = args | |
def __call__(self, original_func): | |
decorator_self = self | |
def check( *args, **kwargs): | |
if len(decorator_self.flags) != len(args): | |
raise TypeError("Incorrect number of arguments") | |
types = zip(decorator_self.flags,args) | |
for (t,a) in types: |
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
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime |